From 0b685a5b1eedcf7e5b858641cab01e9a8496697f Mon Sep 17 00:00:00 2001 From: andrey-git Date: Tue, 10 Jan 2017 01:40:52 +0200 Subject: [PATCH] Expose supported_features of mqtt_json (#5250) * Expose supported_features of mqtt_json * Remove whitespace --- homeassistant/components/light/mqtt_json.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/light/mqtt_json.py b/homeassistant/components/light/mqtt_json.py index d26f5490049..ba2c9efcb3d 100755 --- a/homeassistant/components/light/mqtt_json.py +++ b/homeassistant/components/light/mqtt_json.py @@ -172,6 +172,11 @@ class MqttJson(Light): """Return true if we do optimistic updates.""" return self._optimistic + @property + def supported_features(self): + """Flag supported features.""" + return SUPPORT_MQTT_JSON + def turn_on(self, **kwargs): """Turn the device on.""" should_update = False