UniFi - Increase time to mark UniFi devices as away (#36366)

pull/36369/head
Robert Svensson 2020-06-02 10:35:27 +02:00 committed by GitHub
parent cc4326276e
commit a3865fb383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 (

View File

@ -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")