Min renovasjon not working
Closed this issue · 4 comments
Suddenly this custom component stopped working.
I run Home assistant in docker on an ubuntu server. I am running Home assistant 0.112.5.
Here is the error message I get in the log:
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 12:39:44 (2 occurrences)
Last logged: 12:39:44
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for min_renovasjon doing I/O at custom_components/min_renovasjon/init.py, line 83: response = requests.get(url, headers=header)
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for min_renovasjon doing I/O at custom_components/min_renovasjon/init.py, line 95: response = requests.get(url, headers=header)
and
Error during setup of component min_renovasjon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
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 125, in _get_calendar_list
check_for_refresh = self._check_for_refresh_of_data(kalender_list)
File "/config/custom_components/min_renovasjon/init.py", line 170, in _check_for_refresh_of_data
if tommedato_forste.date() < date.today() or tommedato_neste.date() < date.today():
AttributeError: 'NoneType' object has no attribute 'date'
Have same issue, on HA 0.113.1.
This logs might be the same, but in case they aren't:
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 9:37:34 (2 occurrences)
Last logged: 9:37:34
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for min_renovasjon doing I/O at custom_components/min_renovasjon/init.py, line 83: response = requests.get(url, headers=header)
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for min_renovasjon doing I/O at custom_components/min_renovasjon/init.py, line 95: response = requests.get(url, headers=header)
Logger: homeassistant.setup
Source: custom_components/min_renovasjon/init.py:170
First occurred: 9:37:35 (1 occurrences)
Last logged: 9:37:35
Error during setup of component min_renovasjon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 483, in wait_for
return fut.result()
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 125, in _get_calendar_list
check_for_refresh = self._check_for_refresh_of_data(kalender_list)
File "/config/custom_components/min_renovasjon/init.py", line 170, in _check_for_refresh_of_data
if tommedato_forste.date() < date.today() or tommedato_neste.date() < date.today():
AttributeError: 'NoneType' object has no attribute 'date'
Logger: homeassistant.setup
Source: setup.py:298
First occurred: 9:38:02 (1 occurrences)
Last logged: 9:38:02
Unable to prepare setup for platform min_renovasjon.sensor: Unable to set up component.
Edit:
Running on a NUC:
arch | x86_64 |
---|---|
chassis | embedded |
dev | false |
docker | true |
docker_version | 19.03.8 |
hassio | true |
host_os | HassOS 4.11 |
installation_type | Home Assistant OS |
os_name | Linux |
os_version | 5.4.50 |
python_version | 3.8.3 |
supervisor | 229 |
timezone | Europe/Oslo |
version | 0.113.1 |
virtualenv | false |
Have tried: Overwrite the three files in custom_integrations/min_renovasjon, and tried to remove the pytemp-folder. No changes.
And suddenly it started working again here...!
Still not working with me 😒
Fixed