JoDehli / PyLoxone

Python Loxone binding
Apache License 2.0
164 stars 40 forks source link

Setup is not executable #201

Closed rvetere closed 8 months ago

rvetere commented 8 months ago

Which Model do you use from loxone? Miniserver? Gen1 or Gen2? Gen2

Which software version does your loxone use? 14.2.6.16

How did you install HomeAssistant? Over Hassio or manual install? I used HACS and the install script

Which Version do you use of HomeAssistant? 2023.10.0

Describe the bug I'm stuck in the setup of the PyLoxone Integration. In the logs of homeassistant, i see a python error.

Paste the error log with the following settings:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/loxone/__init__.py", line 261, in async_setup_entry
if "_token" in token:
^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

It seems to me that something with "token" is null what shouldn't be null i guess (otherwise there would be an exception handling in place, right?)