Skip to content

Commit

Permalink
Fix light supported_color_modes subscription missing
Browse files Browse the repository at this point in the history
  • Loading branch information
olicooper committed May 2, 2024
1 parent 6b9eb35 commit c96252d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/nspanel_lovelace/nspanel_lovelace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ void NSPanelLovelace::setup() {
bool add_state_subscription = false;
if (entity->is_type(entity_type::light)) {
add_state_subscription = true;
this->subscribe_homeassistant_state_attr(
&NSPanelLovelace::on_entity_attribute_update_,
entity_id, to_string(ha_attr_type::supported_color_modes));
this->subscribe_homeassistant_state_attr(
&NSPanelLovelace::on_entity_attribute_update_,
entity_id, to_string(ha_attr_type::color_mode));
Expand Down

0 comments on commit c96252d

Please sign in to comment.