1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Homekit controller reconnect (#17060)

* Add threaded call_later helper

* Reconnect to device when connection fails

* Consolidate connection logs and warn on first
This commit is contained in:
Adam Mills
2018-10-04 03:25:05 -04:00
committed by Paulus Schoutsen
parent 6a0c9a718e
commit 3abdf217bb
3 changed files with 90 additions and 13 deletions

View File

@@ -227,6 +227,10 @@ def async_call_later(hass, delay, action):
hass, action, dt_util.utcnow() + timedelta(seconds=delay))
call_later = threaded_listener_factory(
async_call_later)
@callback
@bind_hass
def async_track_time_interval(hass, action, interval):