Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Min renovasjon not working #5

Closed
stave1989 opened this issue Jul 20, 2020 · 4 comments
Closed

Min renovasjon not working #5

stave1989 opened this issue Jul 20, 2020 · 4 comments

Comments

@stave1989
Copy link

stave1989 commented Jul 20, 2020

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'

@lb3ne
Copy link

lb3ne commented Jul 27, 2020

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.

@lb3ne
Copy link

lb3ne commented Aug 20, 2020

And suddenly it started working again here...!

@stave1989
Copy link
Author

Still not working with me 😒

@eyesoft
Copy link
Owner

eyesoft commented Jan 25, 2022

Fixed

@eyesoft eyesoft closed this as completed Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants