From da79bf8534090835f4e9ea260266848c56ae7584 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 9 Mar 2023 19:17:29 +0100 Subject: [PATCH] Fix Dormakaba dKey deadbolt binary sensor (#89447) * Fix Dormakaba dKey deadbolt binary sensor * Spelling --- homeassistant/components/dormakaba_dkey/binary_sensor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/dormakaba_dkey/binary_sensor.py b/homeassistant/components/dormakaba_dkey/binary_sensor.py index 95e26a3eeb3..e21e35da1e5 100644 --- a/homeassistant/components/dormakaba_dkey/binary_sensor.py +++ b/homeassistant/components/dormakaba_dkey/binary_sensor.py @@ -45,9 +45,10 @@ BINARY_SENSOR_DESCRIPTIONS = ( ), DormakabaDkeyBinarySensorDescription( key="security_locked", - name="Dead bolt", + name="Deadbolt", 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), ), )