Expose supported_features of mqtt_json (#5250)
* Expose supported_features of mqtt_json * Remove whitespace
This commit is contained in:
1 parent
1f31dfe5d3
commit
0b685a5b1e
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user