Expose supported_features of mqtt_json (#5250)
* Expose supported_features of mqtt_json * Remove whitespace
This commit is contained in:
parent
1f31dfe5d3
commit
0b685a5b1e
1 changed files with 5 additions and 0 deletions
|
@ -172,6 +172,11 @@ class MqttJson(Light):
|
||||||
"""Return true if we do optimistic updates."""
|
"""Return true if we do optimistic updates."""
|
||||||
return self._optimistic
|
return self._optimistic
|
||||||
|
|
||||||
|
@property
|
||||||
|
def supported_features(self):
|
||||||
|
"""Flag supported features."""
|
||||||
|
return SUPPORT_MQTT_JSON
|
||||||
|
|
||||||
def turn_on(self, **kwargs):
|
def turn_on(self, **kwargs):
|
||||||
"""Turn the device on."""
|
"""Turn the device on."""
|
||||||
should_update = False
|
should_update = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue