Neosmartblinds broken after latest upgrade

Getting the following error message when checking configuration.

Platform error ‘cover’ from integration ‘neosmartblinds’ - cannot import name ‘SUPPORT_CLOSE’ from ‘homeassistant.components.cover’ (/usr/src/homeassistant/homeassistant/components/cover/init.py)

the file _init_py contains only some commented out header text.

When using an older version of HA no errors. Can anybody assist with resolving my issue.
Thanks.

Has no one else had an issue?

Yes @dormani am experiencing the same issue after upgrading to 2025.1.

Like you I’m welcoming any suggestions to resolve this, thank you in advance!

Hi @dormani, I could fix the issue by changing 2 sections in the file custom_components/neosmartblinds/cover.py:

  1. replace the following

from homeassistant.components.cover import (
SUPPORT_CLOSE,
SUPPORT_OPEN,
SUPPORT_STOP,
SUPPORT_SET_POSITION,
SUPPORT_OPEN_TILT,
SUPPORT_CLOSE_TILT,
SUPPORT_SET_TILT_POSITION,
CoverEntity,
ATTR_CURRENT_POSITION
)

by

from homeassistant.components.cover import (
CoverEntityFeature,
CoverEntity,
ATTR_CURRENT_POSITION
)

  1. and replace

SUPPORT_NEOSMARTBLINDS = (
SUPPORT_OPEN
| SUPPORT_CLOSE
| SUPPORT_SET_POSITION
| SUPPORT_OPEN_TILT
| SUPPORT_CLOSE_TILT
| SUPPORT_SET_TILT_POSITION
| SUPPORT_STOP
)

by

SUPPORT_NEOSMARTBLINDS = (
CoverEntityFeature.OPEN
| CoverEntityFeature.CLOSE
| CoverEntityFeature.SET_POSITION
| CoverEntityFeature.OPEN_TILT
| CoverEntityFeature.CLOSE_TILT
| CoverEntityFeature.SET_TILT_POSITION
| CoverEntityFeature.STOP
)

Hopefully this works for you too. I’ve also posted the full file in Integration no longer works after upgrading to 2025.1 · Issue #57 · mtgeekman/Home_Assistant_NeoSmartBlinds · GitHub

Thanks for following through with this but I am now receiving the following error when checking configuration. This is after making the changes and doing a restart.

Platform error ‘cover’ from integration ‘neosmartblinds’ - Exception importing custom_components.neosmartblinds.cover

Sorry all working now. Typo my end. Many thanks for your help on this. Hopefully others will also get the benefit of your good work. All the best.

If you have a problem with a specific custom integration, your first step should be to check the original GitHub post where you found it. The people there know the product and use the software, so they can give you better help with your issue. You might find someone here who can help, but it’s not guaranteed.