hass-virtual
hass-virtual copied to clipboard
Upcoming depreciated constants/functions
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.
-
STATE_LOCKED was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.10. Use LockState.LOCKED instead.
-
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
-
SUPPORT_EFFECT was used from virtual, this is a deprecated constant which will be removed in HA Core 2026.1. Use LightEntityFeature.EFFECT instead
-
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_kelvinor override the kelvin propertymin_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 -
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_kelvinor override the kelvin propertymax_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 -
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_kelvinor override the kelvin propertycolor_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!
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?
I'll check asap, but give me a bit of time :-)
No rush; we have a few months :)
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