Skip to content

Commit

Permalink
Change "OFF" status to "Off"
Browse files Browse the repository at this point in the history
  • Loading branch information
TillFleisch committed Feb 3, 2024
1 parent 3283e49 commit 1b73962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ script:
then:
- if:
condition:
lambda: 'return id(status).state == "OFF";'
lambda: 'return id(status).state == "Off";'
then:
- switch.turn_on: power
- wait_until:
Expand Down
6 changes: 3 additions & 3 deletions components/philips_series_2200/text_sensor/status_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ namespace esphome
void update_status(uint8_t *data, size_t len);

/**
* @brief Sets the status to OFF
* @brief Sets the status to Off
*/
void set_state_off()
{
if (state != "OFF")
publish_state("OFF");
if (state != "Off")
publish_state("Off");
};

/**
Expand Down

0 comments on commit 1b73962

Please sign in to comment.