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

Entity sensor.panasonic_heat_pump_main_holiday_mode_state cannot be added as the entity category is set to config #163

Closed
sermayoral opened this issue Nov 26, 2023 · 3 comments · Fixed by #164

Comments

@sermayoral
Copy link

** Versions **

  • Home Assistant version (for instance 2023.9): 2023.11.3
  • This integration version (for instance 1.1.0): 1.4.1

Important

It's even better if you can make sure you are using the lastest version for the integration (https://github.com/kamaradclimber/heishamon-homeassistant/releases)

Any time i restart/reboot Home Assistant, I get the following error:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:507
Integration: Sensor (documentation, issues)
First occurred: 20:11:00 (1 occurrences)
Last logged: 20:11:00

Error adding entities for domain sensor with platform aquarea
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 1021, in add_to_platform_finish
    await self.async_internal_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 279, in async_internal_added_to_hass
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Entity sensor.panasonic_heat_pump_main_holiday_mode_state cannot be added as the entity category is set to config

To Reproduce
Steps to reproduce the behavior:

  1. Restart/Reboot the system
  2. Show the log

Expected behavior

Not to have the error

Screenshots

** MQTT dump **

@kamaradclimber
Copy link
Owner

Thanks for the report, I can reproduce the issue with 2023.11.0 but not with 2023.10.3. I'll investigate what changed and fix it.

@kamaradclimber
Copy link
Owner

kamaradclimber commented Nov 28, 2023

It comes from home-assistant/core#103210 and home-assistant/core#101471 which introduced a warning. I disagree with the interpretation of what "config" means but I don't think there is a point in opening a bug (especially given answers to home-assistant/core#101471 (comment)).

I'll change the impacted entity categories to diagnostic and it should fix this warning error.

See also home-assistant/core#103192

@sermayoral
Copy link
Author

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants