From 1c507d61642da461ebc53c0cdb39ee587c34485a Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 22 May 2026 21:49:09 +0000 Subject: [PATCH] Show gate as unavailable before receiving sync --- components/ratgdo/cover/ratgdo_cover.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/ratgdo/cover/ratgdo_cover.cpp b/components/ratgdo/cover/ratgdo_cover.cpp index 4e1f88e..e9d8c7a 100644 --- a/components/ratgdo/cover/ratgdo_cover.cpp +++ b/components/ratgdo/cover/ratgdo_cover.cpp @@ -26,6 +26,9 @@ void RATGDOCover::setup() 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); bool save_to_flash = true; switch (state) {