From bd8dc29cea622ec83f1dc0682a788ac43bed081a Mon Sep 17 00:00:00 2001 From: Jeroen ter Heerdt Date: Fri, 28 May 2021 10:22:10 -0700 Subject: [PATCH] closing #11 --- custom_components/daily/manifest.json | 2 +- custom_components/daily/sensor.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/daily/manifest.json b/custom_components/daily/manifest.json index 6558993..b0adc13 100644 --- a/custom_components/daily/manifest.json +++ b/custom_components/daily/manifest.json @@ -10,5 +10,5 @@ "homekit": {}, "dependencies": [], "codeowners": ["@jeroenterheerdt"], - "version": "0.3.1" + "version": "0.3.2" } diff --git a/custom_components/daily/sensor.py b/custom_components/daily/sensor.py index 3ae38d1..b847b37 100644 --- a/custom_components/daily/sensor.py +++ b/custom_components/daily/sensor.py @@ -124,14 +124,14 @@ def _handle_update(self, event: Event): pass self.hass.add_job(self.async_update_ha_state) except ValueError: - _LOGGER.error("unable to convert to float.") + _LOGGER.error("unable to convert to float. Please check the source sensor ({}) is available.".format(self.coordinator.input_sensor)) def convert_to_float(self, float_value): """Convert to Float.""" try: return float(float_value) except ValueError: - _LOGGER.error("unable to convert {} to float.".format(float_value)) + _LOGGER.error("unable to convert {} to float. Please check the source sensor ({}) is available.".format(float_value, self.coordinator.input_sensor)) raise ValueError @property