EZVIZ NumberEntity async added to hass (#96930)

Update number.py
This commit is contained in:
Renier Moorcroft 2023-07-20 08:25:54 +02:00 committed by GitHub
parent 6bb81b862c
commit 822d840f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ class EzvizSensor(EzvizBaseEntity, NumberEntity):
async def async_added_to_hass(self) -> None: async def async_added_to_hass(self) -> None:
"""Run when about to be added to hass.""" """Run when about to be added to hass."""
self.schedule_update_ha_state(True) self.async_schedule_update_ha_state(True)
@property @property
def native_value(self) -> float | None: def native_value(self) -> float | None: