This commit is contained in:
J. Nick Koston 2023-06-05 18:33:48 -05:00
parent dc1b03ec64
commit 692f45fba5
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -475,7 +475,7 @@ namespace ratgdo {
void RATGDOComponent::openDoor()
{
if(this->doorStates[this->store_.doorState] == "open" || doorStates[this->store_.doorState] == "opening"){
ESP_LOGD(TAG, "The door is already %s", doorState);
ESP_LOGD(TAG, "The door is already %s", this->doorStates[this->store_.doorState]);
return;
}
@ -489,7 +489,7 @@ namespace ratgdo {
void RATGDOComponent::closeDoor()
{
if(this->doorStates[this->store_.doorState] == "closed" || doorStates[this->store_.doorState] == "closing"){
ESP_LOGD(TAG, "The door is already %s", this->doorState);
ESP_LOGD(TAG, "The door is already %s", this->doorStates[this->store_.doorState]);
return;
}