Sun integration - ghost solar rising sensor?

On both of my current Home Assistant installations there currently is a Diagnostic sensor offered for the Sun integration with the name Solar rising and the entity name sensor.sun_solar_rising
This sensor was not enabled by default. When I enable the sensor it is permanently shown as unavailable.

Note that there also is a binary sensor available with the same name Solar rising and entity name binary_sensor.sun_solar_rising
This sensor is functioning properly.

This are some screen grabs showing the sensor disabled and enabled:


And these screen grabs show the properties of both the sensor and binary_sensor:


I am not sure whether it has always been like this, or when this first appeared.
Is this the same for everyone?

I had a look at the Sun integration code on GitHub, but with my restricted coding knowledge I am not able to find the source of this sensor.
Any ideas about the background of this?
Is this a remnant from a previous instantiation of the Sun integration?

It's been deprecated, apparently: Finish removal of sensor.sun_solar_rising (#157606) · home-assistant/core@972ed4b · GitHub

Not sure why it still shows as an enablable sensor, it does for me as well.

1 Like

Perhaps an issue is a way to fix it?

Thanks! Missed that.

Oké, will do so.

Done:

1 Like

One of the main Home Assistant coders karwosts did respond on GitHub.
A work around to solve this issue for now is:

  • enable the sensor → it will then be unavailable
  • restart the HA server → after that the sensor will be unprovided
  • delete the sensor via the properties cogwheel → it will then be gone permanently