mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix armed extra state attribute in fibaro entity (#80034)
This commit is contained in:
parent
7b247a79cf
commit
06b1a4c2b4
@ -650,8 +650,8 @@ class FibaroDevice(Entity):
|
||||
attr[ATTR_BATTERY_LEVEL] = int(
|
||||
self.fibaro_device.properties.batteryLevel
|
||||
)
|
||||
if "fibaroAlarmArm" in self.fibaro_device.interfaces:
|
||||
attr[ATTR_ARMED] = bool(self.fibaro_device.properties.armed)
|
||||
if "armed" in self.fibaro_device.properties:
|
||||
attr[ATTR_ARMED] = self.fibaro_device.properties.armed.lower() == "true"
|
||||
except (ValueError, KeyError):
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user