mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix armed extra state attribute in fibaro entity (#80034)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user