Fix Dormakaba dKey deadbolt binary sensor (#89447)

* Fix Dormakaba dKey deadbolt binary sensor

* Spelling
This commit is contained in:
Erik Montnemery 2023-03-09 19:17:29 +01:00 committed by GitHub
parent d1734bc0ab
commit 7ef1c289be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,9 +45,10 @@ BINARY_SENSOR_DESCRIPTIONS = (
), ),
DormakabaDkeyBinarySensorDescription( DormakabaDkeyBinarySensorDescription(
key="security_locked", key="security_locked",
name="Dead bolt", 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),
), ),
) )