diff --git a/aqi/integrationpluginaqi.cpp b/aqi/integrationpluginaqi.cpp
index 04bfa517..a4283a3e 100644
--- a/aqi/integrationpluginaqi.cpp
+++ b/aqi/integrationpluginaqi.cpp
@@ -248,7 +248,12 @@ void IntegrationPluginAqi::onPluginTimer()
void IntegrationPluginAqi::onRequestExecuted(QUuid requestId, bool success)
{
- qCDebug(dcAirQualityIndex()) << "Request executd, requestId:" << requestId << "Success:" << success << "is an async request:" << m_asyncRequests.contains(requestId);
+ qCDebug(dcAirQualityIndex()) << "Request executed, requestId:" << requestId << "Success:" << success << "is an async request:" << m_asyncRequests.contains(requestId);
+ if (m_asyncDiscovery.contains(requestId) && !success) {
+ ThingDiscoveryInfo *info = m_asyncDiscovery.take(requestId);
+ info->finish(Thing::ThingErrorHardwareNotAvailable, QT_TR_NOOP("Air quality index server not available, please check your internet connection."));
+ }
+
if (m_asyncRequests.contains(requestId)) {
Thing *thing = myThings().findById(m_asyncRequests.value(requestId));
diff --git a/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-de.ts b/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-de.ts
index 9e4cb02e..52781677 100644
--- a/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-de.ts
+++ b/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-de.ts
@@ -272,5 +272,10 @@ The name of the StateType ({c4366608-2511-428b-964e-2ad9e37f8f3c}) of ThingClass
Everyone should avoid all outdoor exertionJeder sollte jede Anstrengung im Freien vermeiden.
+
+
+ Air quality index server not available, please check your internet connection.
+ Air quality index Server nicht verfügbar, bitte überprüfe die Internetverbindung.
+
diff --git a/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-en_US.ts b/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-en_US.ts
index 53ea90f7..97117c6f 100644
--- a/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-en_US.ts
+++ b/aqi/translations/57d69b76-4d2d-41ec-bef6-949a79ffbe6b-en_US.ts
@@ -272,5 +272,10 @@ The name of the StateType ({c4366608-2511-428b-964e-2ad9e37f8f3c}) of ThingClass
Everyone should avoid all outdoor exertion
+
+
+ Air quality index server not available, please check your internet connection.
+
+