Skip to content

Commit

Permalink
expose: use binary sensor for keypad_lockout
Browse files Browse the repository at this point in the history
Avoid having 'state' label on Climate devices
  • Loading branch information
sjorge committed Mar 16, 2021
1 parent 16dbb48 commit 1165b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])),
Expand Down

0 comments on commit 1165b0b

Please sign in to comment.