DurgNomis-drol / ha_toyota

Toyota Connected Services integration for Home Assistant.
MIT License
148 stars 30 forks source link

ValueError: entity_category must be a valid EntityCategory instance #106

Closed felalex closed 2 years ago

felalex commented 2 years ago

Describe the bug I can see only a subset of data, which was available before:

Sensors:

Diagnostics:

All others are not available and the log shows the following errors:

To Reproduce Steps to reproduce the behavior:

Just stopped working after the update.

Expected behavior Integration works.

Additional context Here's the error I see in the log: Logger: homeassistant.components.sensor Source: helpers/entity_registry.py:383 Integration: Sensor (documentation, issues) First occurred: 3:45:29 PM (4 occurrences) Last logged: 3:45:51 PM

Error adding entities for domain sensor with platform toyota Error while setting up toyota platform for sensor 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 383, in async_get_or_create raise ValueError("entity_category must be a valid EntityCategory instance") ValueError: entity_category must be a valid EntityCategory instance

Logger: homeassistant.components.binary_sensor Source: helpers/entity_registry.py:383 Integration: Binary sensor (documentation, issues) First occurred: 3:45:29 PM (4 occurrences) Last logged: 3:45:51 PM

Error adding entities for domain binary_sensor with platform toyota Error while setting up toyota platform for binary_sensor 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 383, in async_get_or_create raise ValueError("entity_category must be a valid EntityCategory instance") ValueError: entity_category must be a valid EntityCategory instance

DurgNomis-drol commented 2 years ago

Just published a new release with the fix. (I had it fixed in the repo just forgot to make a release, sorry about that đŸ˜œ)

felalex commented 2 years ago

Confirmed. Thank you very much.