From 4e4d4365a0ef1a20d181f1015152acb116226e3d Mon Sep 17 00:00:00 2001 From: Matt Schmitt Date: Tue, 28 Nov 2017 09:25:32 -0500 Subject: [PATCH] Add device class for low battery (#10829) --- 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 e4ff0982718..9e48a30d04a 100644 --- a/homeassistant/components/binary_sensor/__init__.py +++ b/homeassistant/components/binary_sensor/__init__.py @@ -20,6 +20,7 @@ SCAN_INTERVAL = timedelta(seconds=30) ENTITY_ID_FORMAT = DOMAIN + '.{}' DEVICE_CLASSES = [ + 'battery', # On means low, Off means normal 'cold', # On means cold (or too cold) 'connectivity', # On means connection present, Off = no connection 'gas', # CO, CO2, etc.