-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
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
Unifi Network: websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'ConfigEntry' object has no attribute 'runtime_data' on Service unifi.reconnect_client #119947
Comments
Hey there @Kane610, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) unifi documentation |
I am also seeing this issue Logger: aiohttp.server Error handling request |
It can happen when the config entry is not loaded |
Hitting it when trying to authenticate, my account has 2FA enabled, so I'm using <password|totp> as password:
|
Change to a local account. Using 2FA you are on your own |
Any chance there's a regression? It got solved and after the last update it reappeared again. I'm using both local and 2FA users to check and hitting t he same error.
|
Yes its a regression. I will try to have a fix out for next release during this week |
New fix merged, lets hope it resolves it |
The problem
Service call fails:
service: unifi.reconnect_client
data:
device_id: cfb96d0c28bdf78c8e6ba52df88fc8fb ##(Any device on my Unifi system)
What version of Home Assistant Core has the issue?
core-2024.6.3
What was the last working version of Home Assistant Core?
core-2024.5.x ???
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Unifi Network
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifi
Diagnostics information
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:526
First occurred: 8:32:39 PM (2 occurrences)
Last logged: 8:33:26 PM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'ConfigEntry' object has no attribute 'runtime_data'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/unifi/services.py", line 41, in async_call_unifi_service
await services[service_call.service](hass, service_call.data)
File "/usr/src/homeassistant/homeassistant/components/unifi/services.py", line 71, in async_reconnect_client
(hub := entry.runtime_data)
^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntry' object has no attribute 'runtime_data'
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: