Fix incorrect Rainmachine dict lookups (#30550)
This commit is contained in:
1 parent
9aa02e35a7
commit
856db4d122
2 files changed
+8
-6
No files matched your search
@@ -96,7 +96,9 @@ class RainMachineBinarySensor(RainMachineEntity, BinarySensorDevice):
|
||||
async def async_update(self):
|
||||
"""Update the state."""
|
||||
if self._sensor_type == TYPE_FLOW_SENSOR:
|
||||
self._state = self.rainmachine.data[PROVISION_SETTINGS].get("useFlowSensor")
|
||||
self._state = self.rainmachine.data[PROVISION_SETTINGS]["system"].get(
|
||||
"useFlowSensor"
|
||||
)
|
||||
elif self._sensor_type == TYPE_FREEZE:
|
||||
self._state = self.rainmachine.data[RESTRICTIONS_CURRENT]["freeze"]
|
||||
elif self._sensor_type == TYPE_FREEZE_PROTECTION:
|
||||
|
||||
Reference in new issue
Block a user