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 Jesse Hills
parent ad953f02d1
commit 9de40c26eb
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

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;