Philips Airpurifier - deprecated supported features

Hey.
I got a problem with integration Philips-Airpurifier:

Entity None (<class ‘custom_components.philips_airpurifier.fan.PhilipsAirPurifierFan’>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <FanEntityFeature.PRESET_MODE: 8>, please report it to the author of the ‘philips_airpurifier’ custom integration and reference Deprecating all magic numbers for supported features | Home Assistant Developer Docs

SUPPORT_PRESET_MODE was used from philips_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.PRESET_MODE instead, please report it to the author of the ‘philips_airpurifier’ custom integration

I need some help with this.

Repository: https://github.com/AcidSleeper/Philips-Airpurifier/tree/main/philips_airpurifier

The file is located in the link and the filename is: fan.py
SUPPORT_PRESET_MODE occurs on line 14 and 294.

I dont know how to change this so its accepted by HA.

Thanks in advance for any input!

It would seem to me that you need to write up an issue against the integration that HA is complaining about, as HA has identified the issue and is telling you it cannot fix it, the integration needs to change.

There is also a very long thread about this. Have you read that one? I siggest you start here for an answer. Philips Air Purifier.

GitHub - GeorgeSG/philips_airpurifier_http: Home Assistant integration for Philips Air Purifiers.

Thanks for the reply!

Regarding GeorgeSG that has the same problems as my fork has, and more.

The repository from kongo09 works. Will try that.
https://github.com/kongo09/philips-airpurifier-coap

True the links above and some searching the web a found a hint and corrected the warning. My fork of the repo is working again.

Repository: https://github.com/AcidSleeper/Philips-Airpurifier/tree/main/philips_airpurifier