Fix HA state update in ViCare number platform (#104687)

use sync update fn
This commit is contained in:
Christopher Fenner 2023-11-29 09:16:58 +01:00 committed by GitHub
parent 8e8e8077a0
commit 5dc64dd6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ class ViCareNumber(ViCareEntity, NumberEntity):
"""Set new value."""
if self.entity_description.value_setter:
self.entity_description.value_setter(self._api, value)
self.async_write_ha_state()
self.schedule_update_ha_state()
def update(self) -> None:
"""Update state of number."""