Skip to content

Commit

Permalink
closing #11
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt committed May 28, 2021
1 parent d5873f4 commit bd8dc29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/daily/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"homekit": {},
"dependencies": [],
"codeowners": ["@jeroenterheerdt"],
"version": "0.3.1"
"version": "0.3.2"
}
4 changes: 2 additions & 2 deletions custom_components/daily/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd8dc29

Please sign in to comment.