mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Increase Netgear speedtest period to 2 hours (#85299)
This commit is contained in:
parent
b9339a290a
commit
d9be9fe6d5
@ -29,8 +29,8 @@ from .router import NetgearRouter
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
SCAN_INTERVAL = timedelta(seconds=30)
|
SCAN_INTERVAL = timedelta(seconds=30)
|
||||||
SPEED_TEST_INTERVAL = timedelta(seconds=1800)
|
SPEED_TEST_INTERVAL = timedelta(hours=2)
|
||||||
SCAN_INTERVAL_FIRMWARE = timedelta(seconds=18000)
|
SCAN_INTERVAL_FIRMWARE = timedelta(hours=5)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
|
@ -431,6 +431,8 @@ class NetgearRouterSensorEntity(NetgearRouterCoordinatorEntity, RestoreSensor):
|
|||||||
sensor_data = await self.async_get_last_sensor_data()
|
sensor_data = await self.async_get_last_sensor_data()
|
||||||
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:
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_update_device(self) -> None:
|
def async_update_device(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user