cleanups
This commit is contained in:
parent
197fc7902f
commit
3c0f829053
|
@ -32,7 +32,7 @@ namespace ratgdo {
|
||||||
void RATGDOLightOutput::write_state(light::LightState* state)
|
void RATGDOLightOutput::write_state(light::LightState* state)
|
||||||
{
|
{
|
||||||
bool binary;
|
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);
|
state->current_values_as_binary(&binary);
|
||||||
if (binary == currentState)
|
if (binary == currentState)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue