Skip to content

Commit b442467

Browse files
committed
Don't configure indicator reporting for devices without indicator in the Z2M converter
1 parent d6a1f3e commit b442467

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

helper_scripts/templates/switch_custom.js.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ const definitions = [
236236
max: constants.repInterval.MAX,
237237
change: 1,
238238
});
239+
{% endfor %}
240+
{% for indicatorName in device.relayIndicatorNames %}
239241
// indicator:
240242
await endpoint{{loop.index + (device.switchNames | length)}}.configureReporting("genOnOff", [
241243
{

0 commit comments

Comments
 (0)