UniFi - Increase time to mark UniFi devices as away (#36366)
This commit is contained in:
1 parent
cc4326276e
commit
a3865fb383
2 files changed
+2
-2
No files matched your search
@@ -301,7 +301,7 @@ class UniFiDeviceTracker(UniFiBase, ScannerEntity):
|
||||
self.cancel_scheduled_update = async_track_point_in_utc_time(
|
||||
self.hass,
|
||||
_no_heartbeat,
|
||||
dt_util.utcnow() + timedelta(seconds=self.device.next_interval + 10),
|
||||
dt_util.utcnow() + timedelta(seconds=self.device.next_interval + 60),
|
||||
)
|
||||
|
||||
elif (
|
||||
|
||||
@@ -293,7 +293,7 @@ async def test_tracked_devices(hass):
|
||||
device_2 = hass.states.get("device_tracker.device_2")
|
||||
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()
|
||||
|
||||
device_1 = hass.states.get("device_tracker.device_1")
|
||||
|
||||
Reference in new issue
Block a user