mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-19 20:36:53 +02:00
Fix update entity when changing config
This commit is contained in:
@@ -263,7 +263,7 @@ class HonConfigSelectEntity(HonEntity, SelectEntity):
|
||||
async def async_select_option(self, option: str) -> None:
|
||||
setting = self._device.settings[self.entity_description.key]
|
||||
setting.value = self._option_to_number(option, setting.values)
|
||||
self.async_write_ha_state()
|
||||
self.coordinator.async_set_updated_data(None)
|
||||
|
||||
@callback
|
||||
def _handle_coordinator_update(self, update: bool = True) -> None:
|
||||
@@ -317,7 +317,7 @@ class HonSelectEntity(HonEntity, SelectEntity):
|
||||
await self._device.commands[command].send()
|
||||
if command != "settings":
|
||||
self._device.sync_command(command, "settings")
|
||||
self.async_write_ha_state()
|
||||
self.coordinator.async_set_updated_data(None)
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user