Problems with custom integration Warema WMS Control after update 2025.1

After updating to 2025.1 I unfortunately have a problem with the custom integration for my WAREMA blinds.

Despite updating I haven’t changed anything but the entities are no logger working.

‘Check configuration’ is showing me the following:

Configuration warnings
Platform error 'cover' from integration 'warema_wms_webcontrol' - cannot import name 'DEVICE_CLASS_SHADE' from 'homeassistant.components.cover' (/usr/src/homeassistant/homeassistant/components/cover/__init__.py)

And I have the following log entry:

Logger: homeassistant.config
Source: config.py:1055
First occurred: January 7, 2025 at 14:43:54 (1 occurrences)
Last logged: January 7, 2025 at 14:43:54

Platform error: cover - cannot import name 'DEVICE_CLASS_SHADE' from 'homeassistant.components.cover' (/usr/src/homeassistant/homeassistant/components/cover/__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/warema_wms_webcontrol/cover.py", line 7, in <module>
    from homeassistant.components.cover import (
        CoverEntity, DEVICE_CLASS_SHADE, SUPPORT_OPEN, SUPPORT_CLOSE,
        SUPPORT_SET_POSITION, ATTR_POSITION, PLATFORM_SCHEMA)
ImportError: cannot import name 'DEVICE_CLASS_SHADE' from 'homeassistant.components.cover' (/usr/src/homeassistant/homeassistant/components/cover/__init__.py)

I appreciate any help as it sucks to not be able to use the blinds via HA anymore. Updating to 2025.1.1 didn’t help.

Hello RodgerDodger,

That looks like something the Custom Integrator would need to fix.

Did you see if there is an issue open there or open one if it isn’t kn their GitHub?

I have created error with 2025.1: cannot import name 'DEVICE_CLASS_SHADE' · Issue #3 · cornim/ha-warema-integration · GitHub but I am not really hopeful that anything will come of it, judging from the activity on the repository.

Thank you, buddy, as pretty busy right now it’s very welcome.

Have you tried to readd the code files?