Skip to content

TypeError in switch.py during reload: object NoneType can't be used in 'await' expression #14

Description

@Prangel85

Hello,

The integration produces a recurring TypeError in the logs, especially during Home Assistant restarts or when integrations are reloaded.

Here is the full traceback from the logs:

Logger: homeassistant
Source: custom_components/hisense_ac_plugin/switch.py:474
Integration: Hisense Air Conditioner

Traceback:
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/hisense_ac_plugin/switch.py", line 474, in _async_schedule_update
await self.async_schedule_update_ha_state(True)
TypeError: object NoneType can't be used in 'await' expression

Thank you for your work on this integration and for looking into this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions