Fix Home Assistant discovery for Hive SLR2(b). https://github.com/Koenkk/zigbee2mqtt/issues/7903

This commit is contained in:
Koen Kanters 2021-08-12 16:55:47 +02:00
parent 632f9f579c
commit a41c00faea

View File

@ -241,10 +241,6 @@ class HomeAssistant extends Extension {
`{{ value_json.${awayMode.property} }}`;
}
if (firstExpose.endpoint) {
discoveryEntry.discovery_payload.state_topic_postfix = firstExpose.endpoint;
}
discoveryEntries.push(discoveryEntry);
} else if (firstExpose.type === 'lock') {
assert(!endpoint, `Endpoint not supported for lock type`);