mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 14:04:53 +01:00
mqtt_light: remove legacy API config that is not compatible with HA 2021.8 (#2183)
This commit is contained in:
parent
ad953f02d1
commit
9de40c26eb
1 changed files with 0 additions and 6 deletions
|
@ -54,12 +54,6 @@ void MQTTJSONLightComponent::send_discovery(JsonObject &root, mqtt::SendDiscover
|
|||
// legacy API
|
||||
if (traits.supports_color_capability(ColorCapability::BRIGHTNESS))
|
||||
root["brightness"] = true;
|
||||
if (traits.supports_color_capability(ColorCapability::RGB))
|
||||
root["rgb"] = true;
|
||||
if (traits.supports_color_capability(ColorCapability::COLOR_TEMPERATURE))
|
||||
root["color_temp"] = true;
|
||||
if (traits.supports_color_capability(ColorCapability::WHITE))
|
||||
root["white_value"] = true;
|
||||
|
||||
if (this->state_->supports_effects()) {
|
||||
root["effect"] = true;
|
||||
|
|
Loading…
Reference in a new issue