mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
mqtt_light: remove legacy API config that is not compatible with HA 2021.8 (#2183)
This commit is contained in:
parent
1b89174558
commit
ce29a3b07a
1 changed files with 0 additions and 6 deletions
|
@ -54,12 +54,6 @@ void MQTTJSONLightComponent::send_discovery(JsonObject &root, mqtt::SendDiscover
|
||||||
// legacy API
|
// legacy API
|
||||||
if (traits.supports_color_capability(ColorCapability::BRIGHTNESS))
|
if (traits.supports_color_capability(ColorCapability::BRIGHTNESS))
|
||||||
root["brightness"] = true;
|
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()) {
|
if (this->state_->supports_effects()) {
|
||||||
root["effect"] = true;
|
root["effect"] = true;
|
||||||
|
|
Loading…
Reference in a new issue