From 97a13bdcd4c423ce5a5e5cbb57c68409f4c45d39 Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Sun, 21 Jul 2019 18:07:03 +0100 Subject: [PATCH] Improve geniushub logging and bump client (#25359) * add debug logging * bump geniushub client library * delint * bump again * bump again, again --- homeassistant/components/geniushub/__init__.py | 7 +++++++ homeassistant/components/geniushub/manifest.json | 2 +- requirements_all.txt | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/geniushub/__init__.py b/homeassistant/components/geniushub/__init__.py index b9ab1515d32..4beca61e139 100644 --- a/homeassistant/components/geniushub/__init__.py +++ b/homeassistant/components/geniushub/__init__.py @@ -54,6 +54,9 @@ async def async_setup(hass, hass_config): exc_info=True) return False + _LOGGER.debug("zones_raw = %s", data._client.hub._zones_raw) # noqa; pylint: disable=protected-access + _LOGGER.debug("devices_raw = %s", data._client.hub._devices_raw) # noqa; pylint: disable=protected-access + async_track_time_interval(hass, data.async_update, SCAN_INTERVAL) for platform in ['climate', 'water_heater']: @@ -84,4 +87,8 @@ class GeniusData: except AssertionError: # assert response.status == HTTP_OK _LOGGER.warning("Update failed.", exc_info=True) return + + _LOGGER.debug("zones_raw = %s", self._client.hub._zones_raw) # noqa; pylint: disable=protected-access + _LOGGER.debug("devices_raw = %s", self._client.hub._devices_raw) # noqa; pylint: disable=protected-access + async_dispatcher_send(self._hass, DOMAIN) diff --git a/homeassistant/components/geniushub/manifest.json b/homeassistant/components/geniushub/manifest.json index 7c82ceeca44..d7f8601ae25 100644 --- a/homeassistant/components/geniushub/manifest.json +++ b/homeassistant/components/geniushub/manifest.json @@ -3,7 +3,7 @@ "name": "Genius Hub", "documentation": "https://www.home-assistant.io/components/geniushub", "requirements": [ - "geniushub-client==0.4.12" + "geniushub-client==0.4.15" ], "dependencies": [], "codeowners": ["@zxdavb"] diff --git a/requirements_all.txt b/requirements_all.txt index f33f39b490e..039145996ce 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -511,7 +511,7 @@ gearbest_parser==1.0.7 geizhals==0.0.9 # homeassistant.components.geniushub -geniushub-client==0.4.12 +geniushub-client==0.4.15 # homeassistant.components.geo_json_events # homeassistant.components.nsw_rural_fire_service_feed