From e3dd64c36d543af8e12b3f2321e15097f0492002 Mon Sep 17 00:00:00 2001 From: tieskuh <115901851+tieskuh@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:28:09 +0100 Subject: [PATCH] Update binary_sensor.py - plug lock Plug lock should be of device class LOCK. It was also switched. --- custom_components/audiconnect/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/audiconnect/binary_sensor.py b/custom_components/audiconnect/binary_sensor.py index 9cec02bd..abe09c9b 100644 --- a/custom_components/audiconnect/binary_sensor.py +++ b/custom_components/audiconnect/binary_sensor.py @@ -231,8 +231,8 @@ AudiBinarySensorDescription( icon="mdi:power-plug", key="plug_lock", - device_class=dc.PLUG, - value_fn=lambda x: False if x == "unlocked" else True, + device_class=dc.LOCK, + value_fn=lambda x: False if x == "locked" else True, ), AudiBinarySensorDescription( key="preheater_active",