Describe the bug
The Integration throws Exceptions when HA is booting uo:
2022-09-16 14:27:31.864 ERROR (MainThread) [homeassistant.components.switch] Error adding entities for domain switch with platform reolink_dev
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(tasks)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 601, in _async_add_entity
entry = entity_registry.async_get_or_create(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 354, in async_get_or_create
return self.async_update_entity(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 657, in async_update_entity
return self._async_update_entity(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 560, in _async_update_entity
raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance
2022-09-16 14:27:31.876 ERROR (MainThread) [homeassistant.components.switch] Error while setting up reolink_dev platform for switch
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
await asyncio.gather(pending)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 601, in _async_add_entity
entry = entity_registry.async_get_or_create(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 354, in async_get_or_create
return self.async_update_entity(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 657, in async_update_entity
return self._async_update_entity(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 560, in _async_update_entity
raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance
To Reproduce
Boot up HA with the reolink_dev integration under
Describe the bug The Integration throws Exceptions when HA is booting uo:
2022-09-16 14:27:31.864 ERROR (MainThread) [homeassistant.components.switch] Error adding entities for domain switch with platform reolink_dev Traceback (most recent call last): File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities await asyncio.gather(tasks) File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 601, in _async_add_entity entry = entity_registry.async_get_or_create( File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 354, in async_get_or_create return self.async_update_entity( File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 657, in async_update_entity return self._async_update_entity( File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 560, in _async_update_entity raise ValueError("entity_category must be a valid EntityCategory instance") ValueError: entity_category must be a valid EntityCategory instance 2022-09-16 14:27:31.876 ERROR (MainThread) [homeassistant.components.switch] Error while setting up reolink_dev platform for switch Traceback (most recent call last): File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform await asyncio.gather(pending) File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities await asyncio.gather(*tasks) File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 601, in _async_add_entity entry = entity_registry.async_get_or_create( File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 354, in async_get_or_create return self.async_update_entity( File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 657, in async_update_entity return self._async_update_entity( File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_registry.py", line 560, in _async_update_entity raise ValueError("entity_category must be a valid EntityCategory instance") ValueError: entity_category must be a valid EntityCategory instance
To Reproduce Boot up HA with the reolink_dev integration under
home-assistant-frontend 20220907.2 homeassistant 2022.9.4
Expected behavior No errors
Screenshots See stack trace above
Environment: home-assistant-frontend 20220907.2 homeassistant 2022.9.4
Camera C2-Pro by Reolink Firmware: v3.0.0.136_20121107
Additional context I think HA introduced a breaking change that requires the author of this integration to update.