Commit 2fa58bc
Z2M: fix action expose (e.presets.action, not e.action)
The action expose was written as `e.action(...)`, but zigbee-herdsman-converters
exposes `action` only under `presets` — there is no top-level `e.action`. Z2M
rejected the whole converter at load with "e.action is not a function" and
renamed the file, dropping every custom device back to an auto-generated
definition. (This is the multistate proposal's own bug: its committed converter
was never regenerated, so the call was never exercised.)
Verified by loading the generated converter against zigbee-herdsman-converters
26.85.0: 147 definitions build cleanly.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9a9005a commit 2fa58bc
3 files changed
Lines changed: 289 additions & 289 deletions
File tree
- helper_scripts/templates
- zigbee2mqtt
- converters_v1
- converters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| |||
0 commit comments