From 8c627e2b8bb2a4f5da1a5a7b21dd996f9a184189 Mon Sep 17 00:00:00 2001 From: Oleksii Serdiuk Date: Mon, 22 Jan 2018 12:32:27 +0100 Subject: [PATCH] maxcube: Set MAX! Window Sensor's class to 'window' (#11799) The sensors are meant to be put on windows to shut down the heating when windows are open. Having 'window' device class instead of 'opening' is much more logical here. --- homeassistant/components/binary_sensor/maxcube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/maxcube.py b/homeassistant/components/binary_sensor/maxcube.py index cf2be6baed5..1043004243a 100644 --- a/homeassistant/components/binary_sensor/maxcube.py +++ b/homeassistant/components/binary_sensor/maxcube.py @@ -36,7 +36,7 @@ class MaxCubeShutter(BinarySensorDevice): def __init__(self, hass, name, rf_address): """Initialize MAX! Cube BinarySensorDevice.""" self._name = name - self._sensor_type = 'opening' + self._sensor_type = 'window' self._rf_address = rf_address self._cubehandle = hass.data[MAXCUBE_HANDLE] self._state = STATE_UNKNOWN