UniFi - Increase time to mark UniFi devices as away (#36366)
parent
cc4326276e
commit
a3865fb383
|
@ -301,7 +301,7 @@ class UniFiDeviceTracker(UniFiBase, ScannerEntity):
|
||||||
self.cancel_scheduled_update = async_track_point_in_utc_time(
|
self.cancel_scheduled_update = async_track_point_in_utc_time(
|
||||||
self.hass,
|
self.hass,
|
||||||
_no_heartbeat,
|
_no_heartbeat,
|
||||||
dt_util.utcnow() + timedelta(seconds=self.device.next_interval + 10),
|
dt_util.utcnow() + timedelta(seconds=self.device.next_interval + 60),
|
||||||
)
|
)
|
||||||
|
|
||||||
elif (
|
elif (
|
||||||
|
|
|
@ -293,7 +293,7 @@ async def test_tracked_devices(hass):
|
||||||
device_2 = hass.states.get("device_tracker.device_2")
|
device_2 = hass.states.get("device_tracker.device_2")
|
||||||
assert device_2.state == "home"
|
assert device_2.state == "home"
|
||||||
|
|
||||||
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=40))
|
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=90))
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
device_1 = hass.states.get("device_tracker.device_1")
|
device_1 = hass.states.get("device_tracker.device_1")
|
||||||
|
|
Loading…
Reference in New Issue