mqtt_light: remove legacy API config that is not compatible with HA 2021.8 (#2183)

This commit is contained in:
puuu 2021-08-24 10:18:40 +09:00 committed by GitHub
parent 1b89174558
commit ce29a3b07a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;