KiraPC / ha-switchbot-remote

A Custom HomeAssistant Integration to control Switchbot Hub
MIT License
55 stars 3 forks source link

Warning using custom sensors (temperature for AC entity) #41

Closed MrXANA91 closed 8 months ago

MrXANA91 commented 8 months ago

From Home Assistant logs :

Logger: homeassistant.helpers.entity Source: helpers/entity.py:951

Entity climate.climatiseur_2 (<class 'custom_components.switchbotremote.climate.SwitchBotRemoteClimate'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please create a bug report at https://github.com/KiraPC/ha-switchbot-remote/issues

This issue appeared when using custom sensor for the temperature.

According to the source code, this issue should affect the following :

MrXANA91 commented 8 months ago

For reference, the warning message is wrong. See this Home Assistant Core pull request : https://github.com/home-assistant/core/pull/113969