Closed mrvanes closed 2 months ago
The fix is quite simple:
diff --git a/custom_components/comfoconnect/select.py b/custom_components/comfoconnect/select.py
index d44bc61..31e8237 100644
--- a/custom_components/comfoconnect/select.py
+++ b/custom_components/comfoconnect/select.py
@@ -192,7 +192,7 @@ class ComfoConnectSelect(SelectEntity):
)
self._attr_current_option = self.entity_description.sensor_value_fn(value)
- self.async_write_ha_state()
+ self.schedule_update_ha_state()
async def async_update(self) -> None:
"""Update the state."""
Hi! I have updated HA Core from 2024.4.4 to 2024.5.0 and then 2024.5.1. The issue was the same in both cases.
Thanks for the fix recommendation! I started to test it on my system and it seems works. I'm going to give some feedback couple days later, how it goes with this one line modification.
@mrvanes thanks for fix, I can confirm it works OK. Could you please prepare PR so @michaelarnauts can easily merge it? I know it is very small change, but to get this to the release this is probably quickest way. ;-) thank you.
After this merged https://github.com/michaelarnauts/home-assistant-comfoconnect/pull/59 whole init is now fast and all sensors/modes appears without issues.
After upgrade to HomeAssistant 24.05 I get this error for comfoconnect integration and was adviced to report here.