Comments (5)
You can also try https://github.com/Danielhiversen/home_assistant_min_renovasjon
from home_assistant_min_renovasjon.
more info from the error on my setup;
Logger: homeassistant.setup
Source: util/async_.py:139
First occurred: 10:59:00 (1 occurrences)
Last logged: 10:59:00
Error during setup of component min_renovasjon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 240, 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 117, in _get_calendar_list
tommekalender, fraksjoner = self._get_from_web_api()
File "/config/custom_components/min_renovasjon/init.py", line 104, in _get_from_web_api
tommekalender = self._get_tommekalender_from_web_api()
File "/config/custom_components/min_renovasjon/init.py", line 83, in _get_tommekalender_from_web_api
response = requests.get(url, headers=header)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1266, in send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 214, in putrequest
return HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async.py", line 150, in protected_loop_func
check_loop()
File "/usr/src/homeassistant/homeassistant/util/async.py", line 139, in check_loop
raise RuntimeError(
RuntimeError: I/O must be done in the executor; Use await hass.async_add_executor_job()
at custom_components/min_renovasjon/init.py, line 83: response = requests.get(url, headers=header)
from home_assistant_min_renovasjon.
Tried danielhiversen’s pull request, worked flawlessly, replace line 40 with:
def setup(hass, config):
from home_assistant_min_renovasjon.
fix works here also :)
from home_assistant_min_renovasjon.
Fixed
from home_assistant_min_renovasjon.
Related Issues (20)
- Error during setup of component min_renovasjon HOT 1
- No entitys after installing HOT 5
- Entity ID changes when Norkart (Min Renovasjon) changes name of the fraction HOT 1
- Glass and metal sensor is unavailable, causing timeout and deep recursion error HOT 1
- Missing glass and metal sensor HOT 1
- Warning of fail in 2023.3 HOT 1
- 404 errors related to images/icons? HOT 6
- Sensors frequently unavailable HOT 2
- Component fails to load when single date is retured from api HOT 1
- Repo not compliant HOT 1
- Still error when connecting to komteksky.norkart.no whatever I do HOT 3
- Municipality not included
- Breaks in latest HA version HOT 4
- Some renovation-sensors are missed/wanted HOT 1
- Missing Icons in dashboard view HOT 1
- 401 error HOT 2
- Min renovasjon not working HOT 4
- Loop issues HOT 4
- Missing sensor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home_assistant_min_renovasjon.