Skip to content

Commit

Permalink
UniFi - Increase time to mark UniFi devices as away (home-assistant#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored Jun 2, 2020
1 parent cc43262 commit a3865fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/unifi/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def _no_heartbeat(now):
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 (
Expand Down
2 changes: 1 addition & 1 deletion tests/components/unifi/test_device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a3865fb

Please sign in to comment.