mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 16:57:19 +00:00
Fix HA state update in ViCare number platform (#104687)
use sync update fn
This commit is contained in:
parent
8e8e8077a0
commit
5dc64dd6b9
@ -144,7 +144,7 @@ class ViCareNumber(ViCareEntity, NumberEntity):
|
|||||||
"""Set new value."""
|
"""Set new value."""
|
||||||
if self.entity_description.value_setter:
|
if self.entity_description.value_setter:
|
||||||
self.entity_description.value_setter(self._api, value)
|
self.entity_description.value_setter(self._api, value)
|
||||||
self.async_write_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
def update(self) -> None:
|
def update(self) -> None:
|
||||||
"""Update state of number."""
|
"""Update state of number."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user