Show gate as unavailable before receiving sync
This commit is contained in:
@@ -26,6 +26,9 @@ void RATGDOCover::setup()
|
|||||||
|
|
||||||
void RATGDOCover::on_door_state(DoorState state, float position)
|
void RATGDOCover::on_door_state(DoorState state, float position)
|
||||||
{
|
{
|
||||||
|
if (state == DoorState::UNKNOWN) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// ESP_LOGD("ON_DOOR_STATE", "%s %f", LOG_STR_ARG(DoorState_to_string(state)), position);
|
// ESP_LOGD("ON_DOOR_STATE", "%s %f", LOG_STR_ARG(DoorState_to_string(state)), position);
|
||||||
bool save_to_flash = true;
|
bool save_to_flash = true;
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
|||||||
Reference in New Issue
Block a user