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

ATTR_COLOR_TEMP deprecated

Open capsel22 opened this issue 10 months ago • 2 comments

Hi,

I saw this today pop up in the logs. Not sure if it was flagged yet.

HA version 2025.1.0

Logger: homeassistant.components.light Source: helpers/deprecation.py:222 integration: Light (documentation, issues) First occurred: 18:33:16 (2 occurrences) Last logged: 18:33:16

ATTR_COLOR_TEMP was used from aarlo, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead, please report it to the author of the 'aarlo' custom integration

capsel22 avatar Jan 06 '25 21:01 capsel22

If you don't want to wait for the author to fix this, just edit /custom_components/aarlo/light.py. In the section at the top import, change ATTR_COLOR_TEMP to ATTR_COLOR_TEMP_KELVIN.

gamedevdude avatar Feb 25 '25 17:02 gamedevdude

It's going to be deprecated in 2026. I'll change it in a month or two.

I changed something really quickly the other week and broke older installs for some people so I'm a little reticent to dive in and change things immediately.

twrecked avatar Feb 25 '25 17:02 twrecked