mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix HA state update in ViCare number platform (#104687)
use sync update fn
This commit is contained in:
committed by
GitHub
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."""
|
||||||
|
Reference in New Issue
Block a user