Fix fetching of initial data of Netgear sensors (#85450)

fix fetching of initial data
This commit is contained in:
starkillerOG 2023-01-08 23:57:44 +01:00 committed by GitHub
parent 2511402400
commit b0270f1ab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -432,7 +432,7 @@ class NetgearRouterSensorEntity(NetgearRouterCoordinatorEntity, RestoreSensor):
if sensor_data is not None:
self._value = sensor_data.native_value
else:
self.schedule_update_ha_state()
self.coordinator.async_request_refresh()
@callback
def async_update_device(self) -> None: