Don't discover to Home Assistant when device is still interviewing. #4363

This commit is contained in:
Koen Kanters committed 2020-09-15 18:24:48 +02:00
1 parent a47217f1cc
commit ba43744768
1 file changed
+1 -1
+1 -1
View File
@@ -2177,7 +2177,7 @@ class HomeAssistant extends Extension {
// Check if already discoverd and check if there are configs.
const {device, definition} = resolvedEntity;
const discover = force || !this.discovered[device.ieeeAddr];
if (!discover || !device || !definition || !mapping[definition.model] ||
if (!discover || !device || !definition || !mapping[definition.model] || device.interviewing ||
(resolvedEntity.settings.hasOwnProperty('homeassistant') && !resolvedEntity.settings.homeassistant)) {
return;
}