cleanup
This commit is contained in:
parent
6700a7d0c5
commit
c35204653e
|
@ -538,7 +538,6 @@ namespace ratgdo {
|
|||
{
|
||||
if (this->store_.doorState == DoorState::DOOR_STATE_OPEN || this->store_.doorState == DoorState::DOOR_STATE_OPENING) {
|
||||
ESP_LOGD(TAG, "The door is already %s", door_state_to_string(static_cast<DoorState>(this->store_.doorState)));
|
||||
sendDoorStatus();
|
||||
return;
|
||||
}
|
||||
toggleDoor();
|
||||
|
@ -548,7 +547,6 @@ namespace ratgdo {
|
|||
{
|
||||
if (this->store_.doorState == DoorState::DOOR_STATE_CLOSED || this->store_.doorState == DoorState::DOOR_STATE_CLOSING) {
|
||||
ESP_LOGD(TAG, "The door is already %s", door_state_to_string(static_cast<DoorState>(this->store_.doorState)));
|
||||
sendDoorStatus();
|
||||
return;
|
||||
}
|
||||
toggleDoor();
|
||||
|
@ -560,7 +558,6 @@ namespace ratgdo {
|
|||
toggleDoor();
|
||||
} else {
|
||||
ESP_LOGD(TAG, "The door is not moving.");
|
||||
sendDoorStatus();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -575,7 +572,6 @@ namespace ratgdo {
|
|||
{
|
||||
if (this->store_.lightState == LightState::LIGHT_STATE_ON) {
|
||||
ESP_LOGD(TAG, "already on");
|
||||
sendLightStatus();
|
||||
} else {
|
||||
toggleLight();
|
||||
}
|
||||
|
@ -585,7 +581,6 @@ namespace ratgdo {
|
|||
{
|
||||
if (this->store_.lightState == LightState::LIGHT_STATE_OFF) {
|
||||
ESP_LOGD(TAG, "already off");
|
||||
sendLightStatus();
|
||||
} else {
|
||||
toggleLight();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue