Closed finalbillybong closed 3 months ago
Same issue on 2024.1.1
Hi, do you use the recent version? The error message makes no sense :thinking:
Please check out v0.11.0-beta.1
, maybe you can profit from another fix
Please check out
v0.11.0-beta.1
, maybe you can profit from another fix
Thank you but I’m getting same error with this version I am afraid.
Logger: homeassistant.config_entries
Source: config_entries.py:561
First occurred: 10:21:31 (2 occurrences)
Last logged: 10:21:31
Error unloading entry xxx@xxx.com for switch
Error unloading entry xxx@xxx.com for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 561, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 105, in async_unload_entry
return await component.async_unload_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 203, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:507
Integration: Sensor (documentation, issues)
First occurred: 10:19:36 (1 occurrences)
Last logged: 10:19:36
Error adding entities for domain sensor with platform hon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1276, in add_to_platform_finish
await self.async_internal_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 303, in async_internal_added_to_hass
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity sensor.tumble_dryer_suggested_load cannot be added as the entity category is set to config
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:368
Integration: Sensor (documentation, issues)
First occurred: 10:19:36 (1 occurrences)
Last logged: 10:19:36
Error while setting up hon platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1276, in add_to_platform_finish
await self.async_internal_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 303, in async_internal_added_to_hass
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity sensor.tumble_dryer_suggested_load cannot be added as the entity category is set to config
Just tested 2024.1.4 and this error persists for me even with v0.11.0
Hi, so your error message says that the suggested load (Load Capacity) cannot be added as the entity category is set to config. But I changed the category to diagnostic since v0.10.1
, with this change and for me it's displayed in the right category, see here:
So I'm wondering if you really on the latest version, can you check if the version is correct installed and the category is set to diagnostics in sensor.py :thinking:
Thanks for getting back to me on this. I am sure you're busy with other things, so I appreciate it.
I have this line in my sensor.py:
@dataclass class HonConfigSensorEntityDescription(SensorEntityDescription): entity_category: EntityCategory = EntityCategory.CONFIG option_list: Dict[str, str] = None
So that seems correct to me?
I will delete the whole hon folder and manually install the latest update from here and then update HA and see what happens!
I have this line in my sensor.py:
@dataclass class HonConfigSensorEntityDescription(SensorEntityDescription): entity_category: EntityCategory = EntityCategory.CONFIG option_list: Dict[str, str] = None
So that seems correct to me?
It must be EntityCategory.DIAGNOSTIC
, so I think it's a problem with the update process. I don't know how this can happen, maybe a problem with HACS.
I will delete the whole hon folder and manually install the latest update from here and then update HA and see what happens!
That will fix it I think :slightly_smiling_face:
Yep that did it. Thank you, @Andre0512 - I do wonder what happened though to cause this tangle....
Logs below: