I have a problem with Switch Humidifier from Github since 2025.1

Any help for that error? Since update the Switch does not work anymore!

Source: Switch Humidifier

Logger: homeassistant.config
Quelle: config.py:1055
Erstmals aufgetreten: 08:05:41 (1 Vorkommnisse)
Zuletzt protokolliert: 08:05:41

Platform error: humidifier - cannot import name 'DEVICE_CLASS_DEHUMIDIFIER' from 'homeassistant.components.humidifier' (/usr/src/homeassistant/homeassistant/components/humidifier/__init__.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 1055, in _async_load_and_validate_platform_integration
    platform = await p_integration.integration.async_get_platform(domain)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1108, in async_get_platform
    platforms = await self.async_get_platforms((platform_name,))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1173, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1098, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/switch_humidifier/humidifier.py", line 11, in <module>
    from homeassistant.components.humidifier import (
    ...<8 lines>...
    )
ImportError: cannot import name 'DEVICE_CLASS_DEHUMIDIFIER' from 'homeassistant.components.humidifier' (/usr/src/homeassistant/homeassistant/components/humidifier/__init__.py)

This has been deprecated since a number of years and has now been removed.
Please contact the integration developer to have it fixed.

Thanks a lot, I will contact him via Github.
Do you know by any chance an alternative for this Dehumidifier Switch with similar function?

Last commit 4y ago, i think the repo is dead… but u can make by yourself Generic hygrostat - Home Assistant

Thanks, this works like a charm!