Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
**Home Assistant release (hass --version
): 0.65.5
**Python release (python3 --version
):Python 3.6.0
**Component/platform: Vanderbilt SPC
Description of problem:
same config works in 0.64 but not in 0.65 - 0.65.5
**Expected:
Problem-relevant configuration.yaml
entries and steps to reproduce:
spc:
api_url: http://192.168.***.***:8088/
ws_url: ws://192.168.***.***:8088/
Traceback (if applicable):
Additional info:
11:57:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component spc
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 142, in _async_setup_component
result = await component.async_setup(hass, processed_config)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 64, in async_setup
areas = yield from api.get_areas()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 180, in get_areas
return (yield from self._get_data('area'))
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 205, in _get_data
data = yield from self._call_web_gateway(resource)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 226, in _call_web_gateway
response = yield from action(url)
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 207, in _request
raise RuntimeError('Session is closed')
RuntimeError: Session is closed
I have exactly the same problem.
SPC component works in version 0.64.0 but not in later versions.
Same problem in 0.66
Log Details (ERROR)
Sat Mar 31 2018 07:46:20 GMT+0200 (Västeuropa, sommartid)
Error during setup of component spc
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 142, in _async_setup_component
result = await component.async_setup(hass, processed_config)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 64, in async_setup
areas = yield from api.get_areas()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 180, in get_areas
return (yield from self._get_data('area'))
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 200, in _get_data
data = yield from self._call_web_gateway(resource)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/spc.py", line 221, in _call_web_gateway
response = yield from action(url)
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 207, in _request
raise RuntimeError('Session is closed')
RuntimeError: Session is closed
Same issue in 0.66.1
````
2018-04-03 09:17:02 ERROR (MainThread) [homeassistant.setup] Error during setup of component spc
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 142, in _async_setup_component
result = await component.async_setup(hass, processed_config)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/spc.py", line 64, in async_setup
areas = yield from api.get_areas()
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/spc.py", line 180, in get_areas
return (yield from self._get_data('area'))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/spc.py", line 200, in _get_data
data = yield from self._call_web_gateway(resource)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/spc.py", line 221, in _call_web_gateway
response = yield from action(url)
File "/srv/homeassistant/lib/python3.6/site-packages/aiohttp/client.py", line 207, in _request
raise RuntimeError('Session is closed')
RuntimeError: Session is closed
Same here, I temporarily fix this by using a older version (db56748) of the spc.py file, seems to work for now
I got the same kind of errors in several components (deconz, yr) when I tried out 0.66. Something related to new version of the aiohttp library perhaps?
Still broken in 0.69.1
still broken in 0.71
Still broke in 0.73
I'm working on refactoring the SPC Web Gateway specific code into its own library, hopefully this will resolve the problems.
Tell me if I can help in any way
The new update works for me with Home Assistant 0.75.2
:+1:
on 0.76.2 and not working for me.
Still have to use the temporary fix.
2018-08-28 16:35:22 INFO (MainThread) [homeassistant.setup] Setting up spc
2018-08-28 16:35:22 ERROR (MainThread) [homeassistant.setup] Error during setup of component spc
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/usr/src/app/homeassistant/components/spc.py", line 64, in async_setup
areas = yield from api.get_areas()
File "/usr/src/app/homeassistant/components/spc.py", line 180, in get_areas
return (yield from self._get_data('area'))
File "/usr/src/app/homeassistant/components/spc.py", line 200, in _get_data
data = yield from self._call_web_gateway(resource)
File "/usr/src/app/homeassistant/components/spc.py", line 221, in _call_web_gateway
response = yield from action(url)
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 250, in _request
raise RuntimeError('Session is closed')
RuntimeError: Session is closed
2018-08-28 16:35:22 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
- [spc](https://home-assistant.io/components/spc/)
@fergalom I can't reproduce your problem on 0.76.2 Docker I'm afraid. Looks like you're using the old code.
New update doesnt work for me either. Getting the same error. Do you need to download a beta version? When I add ”:latest” tag to the docker build it doesnt work.
@mbrrg ok I don't get it. I always run ":latest" docker image, just tried "0.77.3" tag and also "dev" tag.
Same result as logs above
The changes haven't been merged into any beta/release version of Home Assistant yet. @RMarjanovic @fergalom
Cool! Thanks for taking the time fix the error @mbrrg . Much appreciated!!
Most helpful comment
The new update works for me with Home Assistant 0.75.2
:+1: