mirror of
https://github.com/home-assistant/core.git
synced 2025-10-28 04:59:31 +00:00
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:
committed by
Paulus Schoutsen
parent
c00647ace0
commit
80140732c3
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user