Skip to content

Commit

Permalink
Prevent system commands to interfere with interactive setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 29, 2024
1 parent 5ce099e commit 9a1aba9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion firmware/addons/interactive-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ tcs_intercom:
- if:
condition:
- lambda: |-
return id(interactive_setup_step) == "first_door_opener_command";
std::string str = std::string(x.c_str());
if (str.length() > 5)
{
str.erase(5); // Ingore system commands
}
return id(interactive_setup_step) == "first_door_opener_command" && str != "00005" && str != "00002" && str != "00003";
then:
# Save Command
- lambda: |-
Expand Down

0 comments on commit 9a1aba9

Please sign in to comment.