Skip to content

Exception always logged at HA shutdown #664

@magiczoom2

Description

@magiczoom2

HA core version

2026.2.0

Intergration version

0.6.10

Device type and model

Dehumidifier 00000Q1F (41377) by Midea

Used App

Only HA web interface

The description of problem

This exception is always logged before HA shutdown

2026-02-05 22:46:15.785 ERROR (Dehumidifier) [midealocal.device] [152832117541822] Error in process message aa23a100000000000803c80102507f7f00230000640000000000515c00000026002bb5de,                                 model 00000Q1F, subtype 41377,                                 device protocol 3, message procol 8
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/midealocal/device.py", line 493, in parse_message
    self.update_all(status)
    ~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/midealocal/device.py", line 581, in update_all
    update(status)
    ~~~~~~^^^^^^^^
  File "/config/custom_components/midea_ac_lan/midea_entity.py", line 144, in update_state
    self.schedule_update_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1269, in schedule_update_ha_state
    self.hass.loop.call_soon_threadsafe(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self._async_write_ha_state_from_call_soon_threadsafe
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 878, in call_soon_threadsafe
    self._check_closed()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 556, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

The logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions