diff --git a/custom_components/home_connect_alt/common.py b/custom_components/home_connect_alt/common.py index 4c72bf2..19f2c28 100644 --- a/custom_components/home_connect_alt/common.py +++ b/custom_components/home_connect_alt/common.py @@ -105,14 +105,14 @@ def program_option_available(self) -> bool: async def async_added_to_hass(self): """Run when this Entity has been added to HA.""" - events = [Events.CONNECTION_CHANGED, Events.DATA_CHANGED] + events = [Events.CONNECTION_CHANGED, Events.DATA_CHANGED, Events.PROGRAM_SELECTED] if self._key: events.append(self._key) self._appliance.register_callback(self.async_on_update, events) async def async_will_remove_from_hass(self): """Entity being removed from hass.""" - events = [Events.CONNECTION_CHANGED, Events.DATA_CHANGED] + events = [Events.CONNECTION_CHANGED, Events.DATA_CHANGED, Events.PROGRAM_SELECTED] if self._key: events.append(self._key) self._appliance.deregister_callback(self.async_on_update, events) diff --git a/custom_components/home_connect_alt/const.py b/custom_components/home_connect_alt/const.py index be79892..d33e114 100644 --- a/custom_components/home_connect_alt/const.py +++ b/custom_components/home_connect_alt/const.py @@ -58,7 +58,6 @@ ] TRIGGERS_CONFIG = { - #"program_started": { "key": "BSH.Common.Event.ProgramFinished" }, "program_started": { "key": "BSH.Common.Status.OperationState", "value": "BSH.Common.EnumType.OperationState.Run" }, "program_finished": { "key": "BSH.Common.Status.OperationState", "value": "BSH.Common.EnumType.OperationState.Finished" } } diff --git a/custom_components/home_connect_alt/manifest.json b/custom_components/home_connect_alt/manifest.json index e04558c..f4b2a0e 100644 --- a/custom_components/home_connect_alt/manifest.json +++ b/custom_components/home_connect_alt/manifest.json @@ -1,11 +1,11 @@ { "domain": "home_connect_alt", "name": "Home Connect Alt", - "version": "0.5.0-b10", + "version": "0.5.0-b11", "config_flow": true, "documentation": "https://github.com/ekutner/home-connect-hass", "issue_tracker": "https://github.com/ekutner/home-connect-hass/issues", - "requirements": ["home-connect-async==0.7.0-b10"], + "requirements": ["home-connect-async==0.7.0-b11"], "ssdp": [], "zeroconf": [], "homekit": {},