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

wasp_sensor.reload fails.... #6

Open
pointlevel opened this issue Dec 17, 2023 · 3 comments
Open

wasp_sensor.reload fails.... #6

pointlevel opened this issue Dec 17, 2023 · 3 comments

Comments

@pointlevel
Copy link

Version of the custom_component

0.03

Homeassistant logs

[140145496937280] 'IntegrationConfigInfo' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 986, in admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 365, in async_handle_reload_all
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/wasp_sensor/__init__.py", line 105, in reload_scripts_handler
    hass.data[DOMAIN] = conf[DOMAIN]
                        ~~~~^^^^^^^^
TypeError: 'IntegrationConfigInfo' object is not subscriptable

Describe the bug

When doing a wasp_sensor.reload or homeassistant.reload_all, it fails with error " 'IntegrationConfigInfo' object is not subscriptable"
It only fails on reload, not a complete restart.

@pavan18125
Copy link

Same issue here. Did everything as mentioned in the blog and getting the same error.

@fourtrax01
Copy link

Same thing happening here as well. Is anyone even maintaining this it works great would hate to ditch it.
@pavan18125 what blog are you referring to?

@dlashua
Copy link
Owner

dlashua commented Feb 2, 2024

@fourtrax01 I am no longer maintaining this. PRs happily accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants