fix
This commit is contained in:
parent
64d6b259f2
commit
e1167051ff
|
@ -484,7 +484,7 @@ namespace ratgdo {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOComponent::lightOn(){
|
void RATGDOComponent::lightOn(){
|
||||||
if(his->lightStates[this->store_.lightState] == "on"){
|
if(this->lightStates[this->store_.lightState] == "on"){
|
||||||
ESP_LOGD(TAG, "already on");
|
ESP_LOGD(TAG, "already on");
|
||||||
}else{
|
}else{
|
||||||
toggleLight();
|
toggleLight();
|
||||||
|
@ -492,7 +492,7 @@ namespace ratgdo {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOComponent::lightOff(){
|
void RATGDOComponent::lightOff(){
|
||||||
if(his->lightStates[this->store_.lightState] == "off"){
|
if(this->lightStates[this->store_.lightState] == "off"){
|
||||||
ESP_LOGD(TAG, "already off");
|
ESP_LOGD(TAG, "already off");
|
||||||
}else{
|
}else{
|
||||||
toggleLight();
|
toggleLight();
|
||||||
|
|
Loading…
Reference in New Issue