-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty groups.yml: "TypeError: Cannot convert undefined or null to object" during interviewing #20283
Comments
Side note: I'm using multiple device.yml files, one for read-write and the others read-only (they are served from a ConfigMap in Kubernetes). My configuration looks like: # Use different files for devices and groups
# Comment out the next line temporarily on rw errors:
devices:
- devices-run.yaml
- devices.yaml
#devices: devices.yaml
groups:
- groups-run.yaml
- groups.yaml |
|
It turned out, that groups.yaml contained only comments, so that If I add an empty |
…ty or containing the `null` value. Fixes Koenkk#20283
* Always return an object when loading a YAML file, even when it is empty or containing the `null` value. Fixes #20283 * Add unit test for having multiple device files, with one is empty. This test breaks without the proposed.
Fixed with #20289 |
What happened?
When trying to pair a Aqara RTCGQ11LM motion sensor I get the following error when trying to pair:
After that the server stops. After restart I see the following in the logs
What did you expect to happen?
I expect that pairing either works without problem or a clear error message appears, without crashing the server.
How to reproduce it (minimal and precise)
Just pair an Aqara RTCGQ11LM
Zigbee2MQTT version
1.34.0-dev (commit #29635a9)
Adapter firmware version
20230507
Adapter
Slaesh's CC2652
Debug log
No extra logs except that stacktrace pasted above.
The text was updated successfully, but these errors were encountered: