#Question about fixing deprecation warning

4 messages · Page 1 of 1 (latest)

obtuse skiff
#

I'm getting this warning

Source: components/light/__init__.py:331
integration: Light (documentation, issues)
First occurred: February 21, 2025 at 10:56:46 PM (1 occurrences)
Last logged: February 21, 2025 at 10:56:46 PM

Got `kelvin` argument in `turn_on` service, which is deprecated and will break in Home Assistant 2026.1, please use `color_temp_kelvin` argument```

I know it's discouraged to edit the automations.yaml manually, but I'd really rather not go searching through a bunch of automations manually to fix this 😅 

Can i go into automations.yaml and do a find replace for `kelvin` to `color_temp_kelvin` or will that break something?
bold kettle
#

Should be fine, yes

#

If you're really worried, just search the automations.yaml for kelvin to find the ones you need to edit in the ui, but I manually edit the file itself quite frequently

#

Just be sure to reload the configuration/restart before opening them in the ui