hass-virtual icon indicating copy to clipboard operation
hass-virtual copied to clipboard

Upcoming depreciated constants/functions

Open thomascandrian opened this issue 10 months ago • 4 comments

Please find here all the Depreciations I found in the logs from 2025.2. They are not urgent, as it says it will stop working from 2026.1 on.

  1. STATE_LOCKED was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.10. Use LockState.LOCKED instead.

  2. ATTR_COLOR_TEMP was used from virtual, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead

  3. SUPPORT_EFFECT was used from virtual, this is a deprecated constant which will be removed in HA Core 2026.1. Use LightEntityFeature.EFFECT instead

  4. Detected that custom integration 'virtual' is using mireds for warmest light color temperature, when it should be adjusted to use the kelvin attribute _attr_min_color_temp_kelvin or override the kelvin property min_color_temp_kelvin, possibly with default DEFAULT_MIN_KELVIN (see https://github.com/home-assistant/core/pull/79591). This will stop working in Home Assistant 2026.1

  5. Detected that custom integration 'virtual' is using mireds for coldest light color temperature, when it should be adjusted to use the kelvin attribute _attr_max_color_temp_kelvin or override the kelvin property max_color_temp_kelvin, possibly with default DEFAULT_MAX_KELVIN (see https://github.com/home-assistant/core/pull/79591). This will stop working in Home Assistant 2026.1

  6. Detected that custom integration 'virtual' is using mireds for current light color temperature, when it should be adjusted to use the kelvin attribute _attr_color_temp_kelvin or override the kelvin property color_temp_kelvin (see https://github.com/home-assistant/core/pull/79591). This will stop working in Home Assistant 2026.1

Thank you twrecked for your effort!

thomascandrian avatar Feb 06 '25 08:02 thomascandrian

Thanks for the note.

Some of these should be fixed in 0.9.2. I didn't see 4, 5 or 6 in my install so can you see if they are gone as well?

twrecked avatar Apr 02 '25 12:04 twrecked

I'll check asap, but give me a bit of time :-)

thomascandrian avatar Apr 02 '25 15:04 thomascandrian

No rush; we have a few months :)

twrecked avatar Apr 02 '25 15:04 twrecked

2 seems to be fixed, I still have 1 & 3 and the rest. Here the full detail log messages I see:

Logger: homeassistant.components.light
Quelle: helpers/deprecation.py:222
Integration: Leuchte (Dokumentation, Probleme)
Erstmals aufgetreten: 17:24:09 (2 Vorkommnisse)
Zuletzt protokolliert: 17:24:09

SUPPORT_EFFECT was used from virtual, this is a deprecated constant which will be removed in HA Core 2026.1. Use LightEntityFeature.EFFECT instead, please report it to the author of the 'virtual' custom integration 



Logger: homeassistant.const
Quelle: helpers/deprecation.py:222
Erstmals aufgetreten: 17:24:09 (1 Vorkommnisse)
Zuletzt protokolliert: 17:24:09

STATE_LOCKED was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.10. Use LockState.LOCKED instead, please report it to the author of the 'virtual' custom integration
  
  
  
Logger: homeassistant.helpers.frame
Quelle: helpers/frame.py:282
Erstmals aufgetreten: 17:24:34 (2 Vorkommnisse)
Zuletzt protokolliert: 17:24:34

Detected that custom integration 'virtual' is using mireds for warmest light color temperature, when it should be adjusted to use the kelvin attribute `_attr_min_color_temp_kelvin` or override the kelvin property `min_color_temp_kelvin`, possibly with default DEFAULT_MIN_KELVIN (see https://github.com/home-assistant/core/pull/79591). This will stop working in Home Assistant 2026.1, please create a bug report at https://github.com/twrecked/hass-virtual/issues

Detected that custom integration 'virtual' is using mireds for coldest light color temperature, when it should be adjusted to use the kelvin attribute `_attr_max_color_temp_kelvin` or override the kelvin property `max_color_temp_kelvin`, possibly with default DEFAULT_MAX_KELVIN (see https://github.com/home-assistant/core/pull/79591). This will stop working in Home Assistant 2026.1, please create a bug report at https://github.com/twrecked/hass-virtual/issues



thomascandrian avatar Apr 02 '25 15:04 thomascandrian