mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-23 06:12:23 +00:00
Don't discover to Home Assistant when device is still interviewing. #4363
This commit is contained in:
1 parent
a47217f1cc
commit
ba43744768
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user