mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-19 01:56:29 +00:00
homeassistant discovery: fix crash when not in configuration.yaml. #63
This commit is contained in:
@@ -234,7 +234,7 @@ const discovered = {};
|
||||
|
||||
function discover(deviceID, model, mqtt) {
|
||||
// Check if already discoverd and check if there are configs.
|
||||
if (discovered[deviceID] || !mapping[model]) {
|
||||
if (discovered[deviceID] || !mapping[model] || !settings.getDevice(deviceID)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user