dkarv / hacs-bwt-perla

Custom HA integration for BWT Perla devices
MIT License
14 stars 1 forks source link

Unexpected Error #1

Closed chheiss closed 10 months ago

chheiss commented 10 months ago

coming up during integration set up.

dkarv commented 10 months ago

Is there anything related in the logs? I just tried on my own instance and on a fresh setup, both worked. In the host field I entered the ip address of the bwt device, e.g 192.168.1.20 and code is the Login-Code from bwt (6 characters in my case).

chheiss commented 10 months ago

Logger: custom_components.bwt_perla.config_flow Source: custom_components/bwt_perla/config_flow.py:50 Integration: bwt_perla First occurred: 20:35:29 (1 occurrences) Last logged: 20:35:29

Unexpected exception Traceback (most recent call last): File "/config/custom_components/bwt_perla/config_flow.py", line 50, in async_step_user info = await validate_input(self.hass, user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/bwt_perla/config_flow.py", line 32, in validate_input await api.get_current_data() File "/usr/local/lib/python3.11/site-packages/bwt_api/api.py", line 83, in get_current_data list(errors), ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/bwt_api/api.py", line 68, in lambda error: BwtError(int(error)), raw["ActiveErrorIDs"].split(",") ^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

dkarv commented 10 months ago

I made a mistake parsing the errors if there are none. It should be fixed now, I pushed a new version and you can update within HACS.

chheiss commented 10 months ago

Works now! Thanks for that!!! Great integration.