diff --git a/custom_components.json b/custom_components.json index ae7d5e4..2ca2905 100644 --- a/custom_components.json +++ b/custom_components.json @@ -1,6 +1,6 @@ { "neviweb": { - "version": "2.1.5", + "version": "2.1.6", "local_location": "/custom_components/neviweb/__init__.py", "remote_location": "https://github.com/claudegel/sinope-1/tree/master/custom_components/neviweb/__init__.py", "visit_repo": "https://github.com/claudegel/sinope-1", diff --git a/custom_components/neviweb/__init__.py b/custom_components/neviweb/__init__.py index eac28a4..31b855e 100644 --- a/custom_components/neviweb/__init__.py +++ b/custom_components/neviweb/__init__.py @@ -46,7 +46,7 @@ ) #REQUIREMENTS = ['PY_Sinope==0.1.5'] -VERSION = '2.1.5' +VERSION = '2.1.6' _LOGGER = logging.getLogger(__name__) @@ -331,7 +331,7 @@ def get_device_daily_stats(self, device_id): if "values" in data: return data["values"] else: - _LOGGER.debug("Daily stat error: %s", data) + _LOGGER.debug("Daily stat error: %s, %s", data, device_id) return None def get_device_hourly_stats(self, device_id): @@ -353,7 +353,7 @@ def get_device_hourly_stats(self, device_id): if "values" in data: return data["values"] else: - _LOGGER.debug("Hourly stat error: %s", data) + _LOGGER.debug("Hourly stat error: %s, %s", data, device_id) return None def set_brightness(self, device_id, brightness): diff --git a/custom_components/neviweb/light.py b/custom_components/neviweb/light.py index e81cac9..f43308f 100644 --- a/custom_components/neviweb/light.py +++ b/custom_components/neviweb/light.py @@ -349,7 +349,7 @@ def update(self): self._energy_stat_time = time.time() if self._energy_stat_time == 0: self._energy_stat_time = start - + @property def supported_color_modes(self): """Return the list of supported colorMode features.""" @@ -357,7 +357,7 @@ def supported_color_modes(self): return ColorMode.BRIGHTNESS else: return ColorMode.ONOFF - + @property def unique_id(self): """Return unique ID based on Neviweb device ID.""" diff --git a/custom_components/neviweb/manifest.json b/custom_components/neviweb/manifest.json index 3b68bfa..507af2d 100644 --- a/custom_components/neviweb/manifest.json +++ b/custom_components/neviweb/manifest.json @@ -5,5 +5,5 @@ "dependencies": [], "codeowners": ["@claudegel"], "requirements": [], - "version": "2.1.5" + "version": "2.1.6" }