ha-button-plus
ha-button-plus copied to clipboard
reinstall integration in HA failed
I want to reinstall the HACS integration for Button+ in Home Assistant. Downloading the integration in HACS works, but when I want to add the integration in HA it asks for login + password for Button+ (I assume the credentials are for the button.plus website?) OR the auth cookie after logging in to button.plus. When I enter login/password HA reports after hitting 'send' that the configuration failed. The log says the following:
Translated with DeepL.com (free version)
Logger: homeassistant.config_entries Bron: config_entries.py:604 Eerst voorgekomen: 21:04:41 (3 gebeurtenissen) Laatst gelogd: 21:20:32
Error setting up entry bplus_wk1 for button_plus Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/button_plus/init.py", line 29, in async_setup_entry device_configuration: DeviceConfiguration = ModelDetection.model_for_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/button_plus/button_plus_api/model_detection.py", line 9, in model_for_json data = json.loads(json_data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/json/init.py", line 339, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, ' TypeError: the JSON object must be str, bytes or bytearray, not NoneType
Am I doing something wrong? Would it work with the auth cookie? I just don't know how to get that ...