mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +02:00
Fix Dormakaba dKey deadbolt binary sensor (#89447)
* Fix Dormakaba dKey deadbolt binary sensor * Spelling
This commit is contained in:
committed by
Paulus Schoutsen
parent
83e2cc32b7
commit
da79bf8534
@@ -47,7 +47,8 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
|||||||
key="security_locked",
|
key="security_locked",
|
||||||
name="Deadbolt",
|
name="Deadbolt",
|
||||||
device_class=BinarySensorDeviceClass.LOCK,
|
device_class=BinarySensorDeviceClass.LOCK,
|
||||||
is_on=lambda state: state.unlock_status != UnlockStatus.SECURITY_LOCKED,
|
is_on=lambda state: state.unlock_status
|
||||||
|
not in (UnlockStatus.SECURITY_LOCKED, UnlockStatus.UNLOCKED_SECURITY_LOCKED),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user