Bump raincloudy version 0.0.3 (#9767)

* Bump raincloudy version 0.0.3

* Fix logic for raincloudy status binary_sensor

* Simplified binary_sensor logic

* Simplify
This commit is contained in:
Marcelo Moreira de Mello authored and Paulus Schoutsen committed 2017-10-08 21:08:40 -07:00
1 parent c00647ace0
commit 80140732c3
4 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ class RainCloudSensor(RainCloudEntity):
"""Get the latest data and updates the states."""
_LOGGER.debug("Updating RainCloud sensor: %s", self._name)
if self._sensor_type == 'battery':
self._state = self.data.battery.strip('%')
self._state = self.data.battery
else:
self._state = getattr(self.data, self._sensor_type)