mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Expose supported_features of mqtt_json (#5250)
* Expose supported_features of mqtt_json * Remove whitespace
This commit is contained in:
parent
1f31dfe5d3
commit
0b685a5b1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user