Expose supported_features of mqtt_json (#5250)

* Expose supported_features of mqtt_json

* Remove whitespace
This commit is contained in:
andrey-git 2017-01-10 01:40:52 +02:00 committed by Paulus Schoutsen
parent 1f31dfe5d3
commit 0b685a5b1e

View file

@ -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