Closed wimleers closed 1 year ago
I don’t see a crash, just a warning message (with stack trace)?
Indeed, removing a meter isn’t a use case I had anticipated, but it’s quite easy to prevent the TypeError.
BTW you’re running an old beta version of Homebridge P1.
BTW you’re running an old beta version of Homebridge P1.
Yes, I am, because almost every release you make bumps the minimum node
version — so I can't update plugins through the Homebridge UI. Out of curiosity: why exactly do you do that? 🤔
On that subject: this plugin is "homebridge verified", but per https://github.com/homebridge/verified#requirements, that means:
The plugin must run on all supported LTS versions of Node.js, at the time of writing this is Node.js v16 and v18.
AFAICT that means that anything other than "node": "^16 || ^18"
is in violation of that requirement? 😅
I develop and test my plugins against the latest LTS version of NodeJS. Other versions might work, or not. I simply don't have the bandwidth to test these.
Usually a NodeJS release includes security updates, so I would recommend to update NodeJS to the latest version.
Updated to 1.3.10
by now 👍
Thanks for https://github.com/ebaauw/homebridge-p1/releases/tag/v1.3.10! 🤩
I think this issue can be closed? 😊 Unfortunately I won't be able to re-test this, because I don't have a single meter left 😇
Yesterday, my gas meter was removed. I realize this is a pretty extreme edge case 🤓 😅
But this did trigger this plugin crashing:
A simple reboot fixes it though: