eyesoft / home_assistant_min_renovasjon

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

Error during setup of component min_renovasjon #10

Closed Hertizch closed 2 years ago

Hertizch commented 3 years ago

This happended after updating to 0.118

`Logger: homeassistant.setup Source: custom_components/min_renovasjon/init.py:181 First occurred: 10:14:29 AM (1 occurrences) Last logged: 10:14:29 AM

Error during setup of component min_renovasjon Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component result = await task 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 128, in _get_calendar_list check_for_refresh = self._check_for_refresh_of_data(kalender_list) File "/config/custom_components/min_renovasjon/init.py", line 181, 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'`

eyesoft commented 2 years ago

Fixed