From 27e7fa215420a4d93dff749e8785c6d5357149c7 Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Wed, 17 Mar 2021 19:52:06 +0100 Subject: [PATCH] expose: use binary sensor for keypad_lockout (#2373) Avoid having 'state' label on Climate devices --- lib/exposes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exposes.js b/lib/exposes.js index dcfb23966ae89..85ebcd72cfde5 100644 --- a/lib/exposes.js +++ b/lib/exposes.js @@ -478,7 +478,7 @@ module.exports = { humidity: () => new Numeric('humidity', access.STATE).withUnit('%').withDescription('Measured relative humidity'), illuminance: () => new Numeric('illuminance', access.STATE).withDescription('Raw measured illuminance'), illuminance_lux: () => new Numeric('illuminance_lux', access.STATE).withUnit('lx').withDescription('Measured illuminance in lux'), - keypad_lockout: () => new Lock().withState('keypad_lockout', 'lock1', 'unlock', 'Enables/disables physical input on the device', a.STATE_ALL), + keypad_lockout: () => new Binary('keypad_lockout', access.ALL, 'lock1', 'unlock').withDescription('Enables/disables physical input on the device'), led_disabled_night: () => new Binary('led_disabled_night', access.STATE_SET, true, false).withDescription('Enable/disable the LED at night'), light_brightness: () => new Light().withBrightness(), light_brightness_color: () => new Light().withBrightness().withColor((['xy', 'hs'])),