Enable hass.io panel without ping (#22388)

* Enable hass.io panel without ping

* fix tests
This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2019-03-26 07:38:25 -07:00
1 parent a27e821e8b
commit 3fddf5df08
3 files changed
+6 -6

No files matched your search

+1 -2
View File
@@ -145,8 +145,7 @@ async def async_setup(hass, config):
hass.data[DOMAIN] = hassio = HassIO(hass.loop, websession, host)
if not await hassio.is_connected():
_LOGGER.error("Not connected with Hass.io")
return False
_LOGGER.warning("Not connected with Hass.io / system to busy!")
store = hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY)
data = await store.async_load()
+1 -1
View File
@@ -62,7 +62,7 @@ class HassIO:
This method return a coroutine.
"""
return self.send_command("/supervisor/ping", method="get")
return self.send_command("/supervisor/ping", method="get", timeout=15)
@_api_data
def get_homeassistant_info(self):