mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +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(
|
attr[ATTR_BATTERY_LEVEL] = int(
|
||||||
self.fibaro_device.properties.batteryLevel
|
self.fibaro_device.properties.batteryLevel
|
||||||
)
|
)
|
||||||
if "fibaroAlarmArm" in self.fibaro_device.interfaces:
|
if "armed" in self.fibaro_device.properties:
|
||||||
attr[ATTR_ARMED] = bool(self.fibaro_device.properties.armed)
|
attr[ATTR_ARMED] = self.fibaro_device.properties.armed.lower() == "true"
|
||||||
except (ValueError, KeyError):
|
except (ValueError, KeyError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user