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:
parent
c00647ace0
commit
80140732c3
4 changed files with 5 additions and 3 deletions
|
@ -59,6 +59,8 @@ class RainCloudBinarySensor(RainCloudEntity, BinarySensorDevice):
|
|||
"""Get the latest data and updates the state."""
|
||||
_LOGGER.debug("Updating RainCloud sensor: %s", self._name)
|
||||
self._state = getattr(self.data, self._sensor_type)
|
||||
if self._sensor_type == 'status':
|
||||
self._state = self._state == 'Online'
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
|
|
@ -20,7 +20,7 @@ from homeassistant.helpers.dispatcher import (
|
|||
|
||||
from requests.exceptions import HTTPError, ConnectTimeout
|
||||
|
||||
REQUIREMENTS = ['raincloudy==0.0.1']
|
||||
REQUIREMENTS = ['raincloudy==0.0.3']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -868,7 +868,7 @@ rachiopy==0.1.2
|
|||
radiotherm==1.3
|
||||
|
||||
# homeassistant.components.raincloud
|
||||
raincloudy==0.0.1
|
||||
raincloudy==0.0.3
|
||||
|
||||
# homeassistant.components.raspihats
|
||||
# raspihats==2.2.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue