core: Homematic HmIP-SRH "Sensor [...] entity description is missing."

The problem

I just took the dev branch of Home Assistant for a spin after #57396 was merged and was greeted with the following warning:

2021-11-08 19:36:54 WARNING (SyncWorker_2) [homeassistant.components.homematic.sensor] Sensor (0007DA49A7XXXX STATE) entity description is missing. Sensor state (STATE) needs to be maintained

The entity in question is the STATE parameter of my HmIP-SRH rotary handle sensor. It still works fine in Home Assistant, but there is just no STATE in the new SENSOR_DESCRIPTIONS dict. Adding the following snippet to SENSOR_DESCRIPTIONS gets rid of the warning for me, but I’m unsure if it breaks anything else:

    "STATE": SensorEntityDescription(
        key="STATE"
    ),

What version of Home Assistant Core has the issue?

dev

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Homematic

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homematic

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-11-08 19:36:54 WARNING (SyncWorker_2) [homeassistant.components.homematic.sensor] Sensor (0007DA49A7XXXX STATE) entity description is missing. Sensor state (STATE) needs to be maintained

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

And another one: HmIP-FALMOT-C12 with state LEVEL

Thank you for your report 👍 This is not a potential bug, however we should include the sensors that do not have a description yet in the sensor description. I also have two sensors that need to be included. I will open a PR for this and for your sensor.

Similar to “Jalousieaktor1”, there is the “Rollanaktor”: HmIP-FROLL, state LEVEL