core: Fully Kiosk service to change URLs Error
The problem
I can´t manage to change the url on my fully kiosk tablett. Just get an error “unknown error”
What version of Home Assistant Core has the issue?
Home Assistant 2022.11.0b3
What was the last working version of Home Assistant Core?
new service in beta
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Fully_Kiosk
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/fully_kiosk
Diagnostics information
No response
Example YAML snippet
service: fully_kiosk.load_url
data:
url: http://192.168.86.29:8123/lovelace-hem/Entrekamera
target:
device_id: a636ca9fa546977e48a054bcdbee447c
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/fully_kiosk/services.py:30
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:04:49 (2 occurrences)
Last logged: 19:05:17
[139780137120864] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 646, in handle_execute_script
await script_obj.async_run(msg.get("variables"), context=context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1524, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 409, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 453, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 476, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1744, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/fully_kiosk/services.py", line 30, in async_load_url
coordinator = hass.data[DOMAIN][list(device.config_entries)[0]]
KeyError: '5fd0c04237b3c86741001c0c1bb5e246'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 34 (5 by maintainers)
Ok, perfect. That confirms my thoughts so I’ve got an idea on to fix it. Will try to get a PR put together soon.
Was able to recreate on my test box, PR submitted and merged. Should be part of 2023.1.1.
I don’t have this problem, at least when testing from Developer Tools. However, my version of the integration has the changes being merged. They should not affect this issue though. Now I’m using only HTTPS, so I’ll test over HTTP with the changes in the next days while onboarding a new tablet.