Fix incorrect Rainmachine dict lookups (#30550)
This commit is contained in:
parent
9aa02e35a7
commit
856db4d122
2 changed files with 8 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue