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

ValueError: entity_category must be a valid EntityCategory instance in 2022.4 #504

Closed
gurglingtonic opened this issue Apr 7, 2022 · 5 comments
Labels
bug Something isn't working fixed bug fixed

Comments

@gurglingtonic
Copy link

This error pop up after updating to latest 2022.4.0

Logger: homeassistant.components.switch
Source: helpers/entity_registry.py:529
Integration: Switch ([documentation](https://www.home-assistant.io/integrations/switch), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+switch%22))
First occurred: 1:12:40 pm (1 occurrences)
Last logged: 1:12:40 pm

Error adding entities for domain switch with platform xiaomi_miot
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in _async_add_entity
    entry = entity_registry.async_get_or_create(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 345, in async_get_or_create
    return self.async_update_entity(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 529, in async_update_entity
    raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance
@al-one al-one added the bug Something isn't working label Apr 7, 2022
@al-one
Copy link
Owner

al-one commented Apr 7, 2022

Try master branch.

@al-one al-one changed the title Error adding entities for domain switch with platform xiaomi_miot ValueError: entity_category must be a valid EntityCategory instance in 2022.4 Apr 7, 2022
@gurglingtonic
Copy link
Author

all good

@Mick51
Copy link

Mick51 commented Apr 8, 2022

No fixed yesterday for me....... 🤔🤔🤔

@garyo
Copy link

garyo commented Aug 3, 2022

I'm still getting this with latest 2022.7.7, for a ble_monitor device. What does it mean?

2022-08-03 07:56:44 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform ble_monitor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 397, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 536, in _async_add_entity
entry = entity_registry.async_get_or_create(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 347, in async_get_or_create
return self.async_update_entity(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 643, in async_update_entity
return self._async_update_entity(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 546, in _async_update_entity
raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance

@al-one
Copy link
Owner

al-one commented Aug 4, 2022

@garyo ble_monitor is not this component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed bug fixed
Projects
None yet
Development

No branches or pull requests

4 participants