IDmedia / hass-unraid

This Docker container parses and forwards all WebSocket messages from your Unraid server to Home Assistant using the MQTT protocol
107 stars 5 forks source link

TypeError: 'NoneType' object is not iterable #20

Open K3vb3rt opened 1 month ago

K3vb3rt commented 1 month ago

Hi, would like to use this integration to replace Glances. But everytime I set up, I get "TypeError: 'NoneType' object is not iterable" The config.yaml is in the mapped folder /mnt/user/appdata/hass-unraid/data

My compose:

services: hass-unraid: container_name: hass-unraid network_mode: bridge restart: always environment:

My config.yaml:

unraid:

mqtt: host: 192.168.1.144 port: 1883 username: mqtt-user password: my_supersecret_password

Can anyone help me to get this running?

K3vb3rt commented 1 month ago

Add Log:

TypeError: 'NoneType' object is not iterable Traceback (most recent call last): File "/app/main.py", line 284, in for unraid_config in config.get('unraid'): TypeError: 'NoneType' object is not iterable Traceback (most recent call last): File "/app/main.py", line 284, in for unraid_config in config.get('unraid'): TypeError: 'NoneType' object is not iterable

Flobenki commented 3 weeks ago

Had the same Problem, for me the fix was to move the config.yaml from /hass-unraid/data/ directly in the /hass-unraid/ directory

tony77682 commented 2 weeks ago

does not work for me, even in the /hass-unraid folder, the error is still there

K3vb3rt commented 2 weeks ago

+1 for me. Still does not work.