mirror of
https://github.com/Andre0512/hon.git
synced 2025-06-07 09:54:43 -04:00
Fix update entity when changing config
This commit is contained in:
parent
510c10bd9f
commit
36aed2e6ea
5 changed files with 14 additions and 14 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue