cleanups
This commit is contained in:
parent
4073a354aa
commit
9d7f521b6b
|
@ -573,7 +573,7 @@ namespace ratgdo {
|
||||||
void RATGDOComponent::lightOn()
|
void RATGDOComponent::lightOn()
|
||||||
{
|
{
|
||||||
if (this->store_.lightState == LightState::LIGHT_STATE_ON) {
|
if (this->store_.lightState == LightState::LIGHT_STATE_ON) {
|
||||||
ESP_LOGD(TAG, "already on");
|
ESP_LOGD(TAG, "The light is already on");
|
||||||
} else {
|
} else {
|
||||||
toggleLight();
|
toggleLight();
|
||||||
}
|
}
|
||||||
|
@ -582,7 +582,7 @@ namespace ratgdo {
|
||||||
void RATGDOComponent::lightOff()
|
void RATGDOComponent::lightOff()
|
||||||
{
|
{
|
||||||
if (this->store_.lightState == LightState::LIGHT_STATE_OFF) {
|
if (this->store_.lightState == LightState::LIGHT_STATE_OFF) {
|
||||||
ESP_LOGD(TAG, "already off");
|
ESP_LOGD(TAG, "The light is already off");
|
||||||
} else {
|
} else {
|
||||||
toggleLight();
|
toggleLight();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue