RFC: Only use supported light properties (#15484)
* Only use supported light properties * Fix tests
This commit is contained in:
1 parent
e62e2bb131
commit
e427f9ee38
5 files changed
+43
-34
No files matched your search
@@ -205,7 +205,7 @@ class MqttLight(MqttAvailability, Light):
|
||||
topic[CONF_COLOR_TEMP_COMMAND_TOPIC] is not None and
|
||||
SUPPORT_COLOR_TEMP)
|
||||
self._supported_features |= (
|
||||
topic[CONF_EFFECT_STATE_TOPIC] is not None and
|
||||
topic[CONF_EFFECT_COMMAND_TOPIC] is not None and
|
||||
SUPPORT_EFFECT)
|
||||
self._supported_features |= (
|
||||
topic[CONF_WHITE_VALUE_COMMAND_TOPIC] is not None and
|
||||
|
||||
Reference in new issue
Block a user