Set entities as unavailable in HA if state undefined

This commit is contained in:
iranl
2025-01-22 22:08:27 +01:00
parent c67edb3b5a
commit 13494d69c5
6 changed files with 50 additions and 7 deletions

View File

@@ -90,6 +90,7 @@ RTC_NOINIT_ATTR bool disableNetwork;
RTC_NOINIT_ATTR bool wifiFallback;
RTC_NOINIT_ATTR bool ethCriticalFailure;
bool coredumpPrinted = true;
bool timeSynced = false;
int lastHTTPeventId = -1;
bool doOta = false;
@@ -182,7 +183,8 @@ uint8_t checkPartition()
}
void cbSyncTime(struct timeval *tv) {
Log->println("NTP time synched");
Log->println("NTP time synced");
timeSynced = true;
}
void networkTask(void *pvParameters)