mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Expose supported_features of mqtt_json (#5250)
* Expose supported_features of mqtt_json * Remove whitespace
This commit is contained in:
committed by
Paulus Schoutsen
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
|
||||
|
Reference in New Issue
Block a user