eyesoft / home_assistant_min_renovasjon

Home Assistant integration of the Min Renovasjon app
MIT License
32 stars 22 forks source link

401 error #4

Closed pw4056 closed 2 years ago

pw4056 commented 4 years ago

Getting a 401 error during setup of component min_renovasjon

Log: 2020-02-14 15:19:49 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for min_renovasjon which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2020-02-14 15:19:50 ERROR (MainThread) [custom_components.min_renovasjon] 401 2020-02-14 15:19:50 ERROR (MainThread) [custom_components.min_renovasjon] 401 2020-02-14 15:19:50 ERROR (MainThread) [homeassistant.setup] Error during setup of component min_renovasjon Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 170, in _async_setup_component hass, processed_config File "/config/custom_components/min_renovasjon/__init__.py", line 48, in async_setup min_renovasjon = MinRenovasjon(street_name, street_code, house_no, county_id, date_format) File "/config/custom_components/min_renovasjon/__init__.py", line 61, in __init__ self._kalender_list = self._get_calendar_list() File "/config/custom_components/min_renovasjon/__init__.py", line 121, in _get_calendar_list kalender_list = self._parse_calendar_list(tommekalender, fraksjoner) File "/config/custom_components/min_renovasjon/__init__.py", line 137, in _parse_calendar_list tommekalender_json = json.loads(tommekalender) File "/usr/local/lib/python3.7/json/__init__.py", line 341, 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

snurre66 commented 3 years ago

Samme her:

Logger: custom_components.min_renovasjon Source: custom_components/min_renovasjon/init.py:88 Integration: min_renovasjon First occurred: 23:31:10 (17 occurrences) Last logged: 23:33:29

GET Tommekalender returned: 401

eyesoft commented 2 years ago

HTTP 401 Unauthorized. Not reproducible.