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

Error with 2023.7.1 #215

Closed
sagitt opened this issue Jul 6, 2023 · 18 comments
Closed

Error with 2023.7.1 #215

sagitt opened this issue Jul 6, 2023 · 18 comments

Comments

@sagitt
Copy link

sagitt commented Jul 6, 2023

i not received any error with 2023.7.0, but with 2023.7.1 i see:

Logger: homeassistant.setup
Source: core.py:1763
First occurred: 00:03:36 (1 occurrences)
Last logged: 00:03:36

Error during setup of component multiscrape
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/multiscrape/__init__.py", line 89, in async_setup
    return await _async_process_config(hass, entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/multiscrape/__init__.py", line 162, in _async_process_config
    await _register_services(hass, target_name, coordinator)
  File "/config/custom_components/multiscrape/__init__.py", line 208, in _register_services
    async_set_service_schema(hass, DOMAIN, target_name, service_desc)
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 687, in async_set_service_schema
    response := hass.services.supports_response(domain, service)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1763, in supports_response
    if not (handler := self._services[domain][service]):
                       ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'valori_pun_orario'
@ornative
Copy link

ornative commented Jul 7, 2023

Same issue here.

@greggotcher
Copy link

Same issue as well.

@tozzke
Copy link

tozzke commented Jul 7, 2023

Just updated to 2023.7.1 and experiencing the same issue

@codyc1515
Copy link

I tried a rudamental fix of this but couldn't work it out. Not clear to me if it's a core bug or multiscrape but leaning towards a multiscrape issue.

@elupus
Copy link

elupus commented Jul 7, 2023

I think you are lacking service descriptions. It does look like a core regression. But may be a bit hard to report since it's a custom integration triggering it.

@miczu71
Copy link

miczu71 commented Jul 7, 2023

same here

1 similar comment
@Ameglialuna
Copy link

same here

@fereehu
Copy link

fereehu commented Jul 7, 2023

same here with 2023.7.1

@scrichab
Copy link

scrichab commented Jul 7, 2023

same here - after downgrade to my last working core 2023.6.3 it works

@woopstar
Copy link

woopstar commented Jul 7, 2023

same here with 2023.7.1

@dr2-Romek
Copy link

same here after HA core 2023.7.1 update

@bdraco
Copy link

bdraco commented Jul 7, 2023

I think you are lacking service descriptions. It does look like a core regression. But may be a bit hard to report since it's a custom integration triggering it.

It looks like async_set_service_schema is being called with a different service name than what is actually be registered

@hmmbob
Copy link
Contributor

hmmbob commented Jul 7, 2023

Rollback to 2023.7.0 does solve the issue. home-assistant/core#95911 was in 2023.7.1, so might very likely be the reason for this failing now, as @elupus said.

@elupus
Copy link

elupus commented Jul 7, 2023

Indeed: issue is not core, issue is here:

async_set_service_schema(hass, DOMAIN, target_name, service_desc)

Unclear why this didnt crash before.

@danieldotnl
Copy link
Owner

Thanks @bdraco, you were right. Fixed in v6.7.1!

@woopstar
Copy link

woopstar commented Jul 7, 2023

Can confirm 6.7.1 is working.

@hmmbob
Copy link
Contributor

hmmbob commented Jul 7, 2023

Confirming the same, HA 2023.7.1 and Multiscrape 6.7.1 work nicely now. Thanks for the quick fixes by all involved!

@codyc1515
Copy link

Fixed by 683d63f

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