mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-21 17:02:41 +02:00
Fix update entity when changing config
This commit is contained in:
@@ -257,7 +257,7 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||
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)
|
||||
|
||||
@callback
|
||||
def _handle_coordinator_update(self, update: bool = True) -> None:
|
||||
@@ -308,7 +308,7 @@ class HonConfigNumberEntity(HonEntity, NumberEntity):
|
||||
setting = self._device.settings[self.entity_description.key]
|
||||
if isinstance(setting, HonParameterRange):
|
||||
setting.value = value
|
||||
self.async_write_ha_state()
|
||||
self.coordinator.async_set_updated_data(None)
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user