This commit is contained in:
J. Nick Koston 2023-06-07 19:40:47 -05:00
parent 197fc7902f
commit 3c0f829053
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace ratgdo {
void RATGDOLightOutput::write_state(light::LightState* state)
{
bool binary;
bool currentState = this->parent_->lightsState == esphome::ratgdo::LightState::LIGHT_STATE_ON;
bool currentState = this->parent_->lightState == esphome::ratgdo::LightState::LIGHT_STATE_ON;
state->current_values_as_binary(&binary);
if (binary == currentState)
return;