fix: light state sometimes flip-flips

This commit is contained in:
J. Nick Koston 2023-06-17 11:13:43 -05:00
parent 2a9126f7ac
commit d95e9806bf
No known key found for this signature in database
1 changed files with 0 additions and 6 deletions

View File

@ -432,9 +432,6 @@ namespace ratgdo {
return;
}
toggleLight();
// We don't always get the state back so be optimistic
this->previousLightState = this->lightState;
this->lightState = LightState::LIGHT_STATE_ON;
}
void RATGDOComponent::lightOff()
@ -444,9 +441,6 @@ namespace ratgdo {
return;
}
toggleLight();
// We don't always get the state back so be optimistic
this->previousLightState = this->lightState;
this->lightState = LightState::LIGHT_STATE_OFF;
}
void RATGDOComponent::toggleLight()