mtgeekman / Home_Assistant_NeoSmartBlinds

Adds NeoSmart Blinds support to Home-Assistant.
46 stars 14 forks source link

Platform error cover.neosmartblinds - Requirements for neosmartblinds not found: ['requests==2.28.2']. #41

Closed joelbibeau closed 1 year ago

joelbibeau commented 1 year ago

Since a few days nothing works for me and I have this error. ideas?

mtgeekman commented 1 year ago

I just made some changes to the code base and created a new release.

If you used HACS you can update through there.

tome88 commented 1 year ago

hi @mtgeekman after installing via HACS I'm still getting: Platform error cover.neosmartblinds - Requirements for neosmartblinds not found: ['requests==2.28.2'] when checking my config file. I've added the below into my config.yaml file XX's to redact info, but was working before recent HA upgrade:

cover:

keithr59 commented 1 year ago

@tome88 If you have recently upgraded HA Core to 2023.6.0 you should be able to fix your problem by editing the manifest.json file in config > custom_components > neosmartblinds and change the line

"requirements": ["requests==2.28.2"]

to

"requirements": ["requests==2.31.0"]

and then restart HA.

tome88 commented 1 year ago

Thanks for the quick response @keithr59 however upon doing that I get the error: Invalid config for [cover.neosmartblinds]: [parent_group] is an invalid option for [cover.neosmartblinds]. Check: cover.neosmartblinds->parent_group. (See ?, line ?).

keithr59 commented 1 year ago

@tome88 Unfortunately that is the extent of my knowledge exhausted. Maybe try temporarily commenting out the parent_group entry in your config and see if that makes a difference. I don't use parent_group in my own set up.

malo-ph commented 1 year ago

I got the same error after I upgrade the HACS neoSmart blinds module. I just decide to rollback to the previous version for now.

Thanks,

Philippe

Le 8 juin 2023 à 07:36, keithr59 @.***> a écrit :



@tome88https://github.com/tome88 Unfortunately that is the extent of my knowledge exhausted. Maybe try temporarily commenting out the parent_group entry in your config and see if that makes a difference. I don't use parent_group in my own set up.

— Reply to this email directly, view it on GitHubhttps://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds/issues/41#issuecomment-1582421833, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMLZOIDQN3W4DLFBFDHSX5LXKG2KHANCNFSM6AAAAAAYZ6YWNM. You are receiving this because you are subscribed to this thread.Message ID: @.***>

malo-ph commented 1 year ago

Sorry my last email was about the

parent_group

Thanks,

Philippe

Le 8 juin 2023 à 07:16, tome88 @.***> a écrit :

parent_group

rjm12rjm12 commented 1 year ago

@tome88 If you have recently upgraded HA Core to 2023.6.0 you should be able to fix your problem by editing the manifest.json file in config > custom_components > neosmartblinds and change the line

"requirements": ["requests==2.28.2"]

to

"requirements": ["requests==2.31.0"]

and then restart HA.

This solved my issue, thanks.

joelbibeau commented 1 year ago

Thanks all. Its working for me

keithr59 commented 1 year ago

@tome88 I have done some digging around and it looks like the latest HACS update has downloaded an old release as the manifest.json file on my system says it is version 1.5. (Group codes were introduced in version 2..2).

If you go to https://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds/releases, extract the Source.code zip file, copy the whole neosmartblinds folder from custom_components/ to your own config/custom_components/ directory and then restart HA it should install the correct version.

bktz commented 1 year ago

@tome88 I have done some digging around and it looks like the latest HACS update has downloaded an old release as the manifest.json file on my system says it is version 1.5. (Group codes were introduced in version 2..2).

If you go to https://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds/releases, extract the Source.code zip file, copy the whole neosmartblinds folder from custom_components/ to your own config/custom_components/ directory and then restart HA it should install the correct version.

I followed these steps (but downloaded a zip of master and updated manifest.json to "requirements": ["requests==2.31.0"]). That resolved the parent group issue for me.

Thanks

BillyFKidney commented 1 year ago

To make the code less brittle change your manifest.json to the following:

{
  "domain": "neosmartblinds",
  "name": "NeoSmartBlinds",
  "version": "1.5",
  "documentation": "https://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds/blob/master/README.md",
  "codeowners": ["4n0nD3v3l0p3r","mtgeekman","clara-j"],
  "requirements": ["requests>=2.31.0"]
}

I found that Home Assistant would not reboot until I disabled Cover.py

1) Disable Cover.py 2) Edit Manifest.json 3) Restart Home Assistant Core 4) Enable Cover.py 5) Restart Home Assistant Core Everything should work

Tooflawless commented 1 year ago

@tome88 If you have recently upgraded HA Core to 2023.6.0 you should be able to fix your problem by editing the manifest.json file in config > custom_components > neosmartblinds and change the line "requirements": ["requests==2.28.2"] to "requirements": ["requests==2.31.0"] and then restart HA.

This solved my issue, thanks.

this solved it for me and I had to comment out parent group Thank you!

tome88 commented 1 year ago

@tome88 If you have recently upgraded HA Core to 2023.6.0 you should be able to fix your problem by editing the manifest.json file in config > custom_components > neosmartblinds and change the line "requirements": ["requests==2.28.2"] to "requirements": ["requests==2.31.0"] and then restart HA.

This solved my issue, thanks.

this solved it for me and I had to comment out parent group Thank you!

resolved! thanks so much all! I didn't need to comment out the parent_group for some reason. I just added in json file per @BillyFKidney and used the source.zip files 👍

mtgeekman commented 1 year ago

This should be resolved going forward with the latest release. Thanks @BillyFKidney should have done that to begin with!