From 5d4514652dd61b94202530fb832543f81982ac72 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 5 Nov 2017 19:25:44 +0100 Subject: [PATCH] Addition of new binary sensor class 'plug' (#10336) * Addition of new binary sensor class 'plug' * use term "unplugged" * add the entry to the right place --- homeassistant/components/binary_sensor/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/binary_sensor/__init__.py b/homeassistant/components/binary_sensor/__init__.py index 4ba29e9b2ba..baf9c41cfdf 100644 --- a/homeassistant/components/binary_sensor/__init__.py +++ b/homeassistant/components/binary_sensor/__init__.py @@ -30,6 +30,7 @@ DEVICE_CLASSES = [ 'moving', # On means moving, Off means stopped 'occupancy', # On means occupied, Off means not occupied 'opening', # Door, window, etc. + 'plug', # On means plugged in, Off means unplugged 'power', # Power, over-current, etc 'safety', # Generic on=unsafe, off=safe 'smoke', # Smoke detector