Skip to content

Commit

Permalink
Merge pull request #28 from muxa/dev
Browse files Browse the repository at this point in the history
1.0.0-rc.13
  • Loading branch information
muxa authored Jul 10, 2022
2 parents 8e1c80d + 909bbe0 commit 019cbd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/state_machine/state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ namespace esphome
if (std::find(this->states_.begin(), this->states_.end(), state) == this->states_.end())
{
ESP_LOGE(TAG, "Invalid state: %s", state.c_str());
return;
}

if (state != this->current_state_)
Expand Down
4 changes: 3 additions & 1 deletion components/state_machine/text_sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"StateMachineTextSensor", text_sensor.TextSensor, cg.Component
)

CONFIG_SCHEMA = text_sensor.TEXT_SENSOR_SCHEMA.extend(
CONFIG_SCHEMA = text_sensor.text_sensor_schema(
icon="mdi:state-machine",
).extend(
{
cv.GenerateID(): cv.declare_id(StateMachineTextSensor),
}
Expand Down

0 comments on commit 019cbd1

Please sign in to comment.