mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix fetching of initial data of Netgear sensors (#85450)
fix fetching of initial data
This commit is contained in:
parent
2511402400
commit
b0270f1ab7
@ -432,7 +432,7 @@ class NetgearRouterSensorEntity(NetgearRouterCoordinatorEntity, RestoreSensor):
|
|||||||
if sensor_data is not None:
|
if sensor_data is not None:
|
||||||
self._value = sensor_data.native_value
|
self._value = sensor_data.native_value
|
||||||
else:
|
else:
|
||||||
self.schedule_update_ha_state()
|
self.coordinator.async_request_refresh()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_update_device(self) -> None:
|
def async_update_device(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user