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

Can't setup after install #280

Closed
Harvsch opened this issue Mar 22, 2022 · 14 comments
Closed

Can't setup after install #280

Harvsch opened this issue Mar 22, 2022 · 14 comments
Labels
duplicate This issue or pull request already exists

Comments

@Harvsch
Copy link

Harvsch commented Mar 22, 2022

core-2022.3.5
supervisor-2022.03.5
Home Assistant OS 7.5
Hardware odroid XU4

`Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 20:58:50 (1 occurrences)
Last logged: 20:58:50

Error during setup of component webrtc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/webrtc/__init__.py", line 75, in async_setup
    utils.register_static_path(hass.http.app, url_path, path)
  File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
    app['allow_cors'](route)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in __getitem__
    return self._state[key]
KeyError: 'allow_cors'<!--`
@howelljiang
Copy link

System Health

version core-2022.3.6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.92-v8
arch aarch64
timezone Asia/Shanghai
Home Assistant Community Store
GitHub API ok
GitHub Content failed to load: unreachable
GitHub Web ok
GitHub API Calls Remaining 4390
Installed Version 1.23.0
Stage running
Available Repositories 1080
Downloaded Repositories 11
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.5
update_channel stable
supervisor_version supervisor-2022.03.5
docker_version 20.10.9
disk_total 118.3 GB
disk_used 6.3 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons File editor (5.3.3), Samba share (9.5.1), Node-RED (11.1.0), Mosquitto broker (6.0.1), Terminal & SSH (9.3.0), Zigbee2mqtt (1.23.0-1)
Lovelace
dashboards 1
resources 6
views 2
mode storage
Xiaomi MIoT
logged_in true
can_reach_micloud_server ok
accounts_count 1
account_devices_count 12
added_devices 6

此错误来自自定义集成。

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 19:56:56 (1 occurrences)
Last logged: 19:56:56

Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

@tgerardot
Copy link

Having same issue as above.

@pimp1310
Copy link

yeah the integration dont work anymore with the newest Homeassistant, is the developer not here anymore?

@mplogas
Copy link

mplogas commented Mar 22, 2022

@pimp1310 wow, please consider rephrasing your comment. the dev is still doing this in his spare time. a quick check of his profile would have revealed why he isn't exactly able to support any of his projects rn.

@blalor
Copy link

blalor commented Mar 27, 2022

dupe: #156

@Sarunas88
Copy link

yea doesn't work for me too anymore

@savikko
Copy link

savikko commented Mar 27, 2022

Latest version works great.

Problem is that latest version is not visible on releases on github page.

Just download current repo from github and then extract webrtc -folder to your custom_components directory and then proceed with installing the integration.

@NoMacSec
Copy link

Latest version works great.

Problem is that latest version is not visible on releases on github page.

Just download current repo from github and then extract webrtc -folder to your custom_components directory and then proceed with installing the integration.

Can confirm this workaround got it working for me. Thanks @savikko

@K3str3l
Copy link

K3str3l commented Mar 28, 2022

Thanks @savikko back up and running!

@jopvanraaij
Copy link

Had the same issue, but Solved!

Could not select v2.2.0 (only v2.1.0) in HACS. Solved it by using 'master' instead of a specific version.

@FirstRulez
Copy link

I am still having issues with the add-on. As I installed using HACS I swapped the download channel to master as recommended above, and updated, but having done so the version number in manifest.json shows as "version": "v2.0.2", and the same error message appears in my HASS logs.

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Apr 10, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 10, 2022

#270 (comment)

@AlexxIT AlexxIT closed this as completed Apr 10, 2022
@jopvanraaij
Copy link

@FirstRulez Might need to do a HA restart and/or hard refresh of the UI. I remember doing that quite a few times (not sure it really helped).

@FirstRulez
Copy link

Thank you all. v2.3.0 is now showing in HACS and has sorted the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests