py-smart-gardena / hass-gardena-smart-system

Home Assistant custom component integration for Gardena Smart System
Apache License 2.0
213 stars 53 forks source link

Integration is not working with HA 2024.2 #193

Closed mike4001 closed 9 months ago

mike4001 commented 9 months ago

Hi,

The Integration is not working anymore since the Update to Home Assistant 2024.2

Has probably to do with the Upgrade to Python 3.12

Unable to install package py-smart-gardena==1.3.7: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [18 lines of output] /tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/setup.py", line 16, in <module> version=versioneer.get_version(), ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Unable to install package py-smart-gardena==1.3.7: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [18 lines of output] /tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/setup.py", line 16, in <module> version=versioneer.get_version(), ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Unable to install package py-smart-gardena==1.3.7: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [18 lines of output] /tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/setup.py", line 16, in <module> version=versioneer.get_version(), ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

jonas-holm commented 9 months ago

Same problem here... Running version 1.0.1

grm commented 9 months ago

I updated the upstream library and I will publish a new version tomorrow :)

Jeremie

Le mer. 7 févr. 2024, 21:54, Jonas @.***> a écrit :

Same problem here...

— Reply to this email directly, view it on GitHub https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/193#issuecomment-1932867225, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGIZMFUHPPLDBEU253OTYSPSY5AVCNFSM6AAAAABC6PMQ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSHA3DOMRSGU . You are receiving this because you are subscribed to this thread.Message ID: <py-smart-gardena/hass-gardena-smart-system/issues/193/1932867225@ github.com>

martinw72 commented 9 months ago

I updated the upstream library and I will publish a new version tomorrow :) Jeremie Le mer. 7 févr. 2024, 21:54, Jonas @.***> a écrit : Same problem here... — Reply to this email directly, view it on GitHub <#193 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGIZMFUHPPLDBEU253OTYSPSY5AVCNFSM6AAAAABC6PMQ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSHA3DOMRSGU . You are receiving this because you are subscribed to this thread.Message ID: <py-smart-gardena/hass-gardena-smart-system/issues/193/1932867225@ github.com>

Is it possible to add an option to reload the integration, as it fails from time to time because an authentication issue. Reloading the integration may fix the problem! At the moment a restart of the core is necessary!

Many thanks!

sven-debug commented 9 months ago

Thanks for fixing. Waiting for the update!

jonas-holm commented 9 months ago

I updated the upstream library and I will publish a new version tomorrow :) Jeremie Le mer. 7 févr. 2024, 21:54, Jonas @.***> a écrit : Same problem here... — Reply to this email directly, view it on GitHub <#193 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGIZMFUHPPLDBEU253OTYSPSY5AVCNFSM6AAAAABC6PMQ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSHA3DOMRSGU . You are receiving this because you are subscribed to this thread.Message ID: </issues/193/1932867225@ github.com>

Is it possible to add an option to reload the integration, as it fails from time to time because an authentication issue. Reloading the integration may fix the problem! At the moment a restart of the core is necessary!

Many thanks!

What version should we look out for?

phifre commented 9 months ago

Replacing in manifest.json "requirements": ["py-smart-gardena==1.3.7"] with "requirements": ["py-smart-gardena==1.3.8"] solves the problem

mike4001 commented 9 months ago

Replacing in manifest.json "requirements": ["py-smart-gardena==1.3.7"] with "requirements": ["py-smart-gardena==1.3.8"] solves the problem

Not for me.

Logs say that py-smart-gardena==1.3.8 could not be found.

I am waiting for a new release ... we are still on 1.0.0 (or 1.0.1 prerelease) from the beginning of 2023.

Also as many I would rather use the normal Update function than edit the files myself so I know everything is correct ;-)

martinw72 commented 9 months ago

Replacing in manifest.json "requirements": ["py-smart-gardena==1.3.7"] with "requirements": ["py-smart-gardena==1.3.8"] solves the problem

Not for me.

Logs say that py-smart-gardena==1.3.8 could not be found.

I am waiting for a new release ... we are still on 1.0.0 (or 1.0.1 prerelease) from the beginning of 2023.

Also as many I would rather use the normal Update function than edit the files myself so I know everything is correct ;-)

@mike4001 I had a look into the underlaying library (py-smart-gardena). There is still one issue which is not solved, so it seems that it will take some more time to solve all the problems (2/3 fixed).

crandler commented 9 months ago

Changing manifest.json to this seems to help: https://github.com/py-smart-gardena/hass-gardena-smart-system/blob/master/custom_components/gardena_smart_system/manifest.json

karflyer commented 9 months ago

With the new manifest.json, the integration is now loaded again and works. But the Log says: "Invalid requirement 'git+https://github.com/py-smart-gardena/py-smart-gardena@master'"

grm commented 9 months ago

I had issues yesterday with travisci which does not work as expected anymore. I migrated to github actions for building the underlying library py-smart-gardena.

I just release a 1.1.0-rc3 version (in beta) that should solve the issue.

Robi1976 commented 9 months ago

Replacing in manifest.json "requirements": ["py-smart-gardena==1.3.7"] with "requirements": ["py-smart-gardena==1.3.8"] solves the problem

Thanks. Worked for me.

mike4001 commented 9 months ago

I had issues yesterday with travisci which does not work as expected anymore. I migrated to github actions for building the underlying library py-smart-gardena.

I just release a 1.1.0-rc3 version (in beta) that should solve the issue.

Thanks, I just updated and it works.

Also there are no Error Messages in the Logs anymore.

For my part you could leave the Release Candidate behind and flag this as a regular release :-)

grm commented 9 months ago

@Robi1976 you can now use the library from hacs that has the same fix !

grm commented 9 months ago

Thanks mike, I give it a few hours of testing !

ChristianHannover commented 9 months ago

Changing manifest.json to this seems to help: https://github.com/py-smart-gardena/hass-gardena-smart-system/blob/master/custom_components/gardena_smart_system/manifest.json

This helped - thank you very much!!

This worked for me: (0.) Deinstall Integration via HACS & retsart HA

  1. Download Integration via HACS
  2. Restart HA
  3. Change Version string in manifest.jason (homeassistant/custom_components/gardena_smart_system/manifest.json)
  4. Restart HA
  5. Install Integration via Integrations-> Add Integration
  6. Paste API-Key and API-Secret as credentials (follow instructions of integration)
  7. Dedicate your devices to areas (if prefered)
  8. Done.
grm commented 9 months ago

You should not need to change manifeste version. You can grab beta version

Le ven. 9 févr. 2024, 20:49, ChristianHannover @.***> a écrit :

Changing manifest.json to this seems to help: https://github.com/py-smart-gardena/hass-gardena-smart-system/blob/master/custom_components/gardena_smart_system/manifest.json

This helped - thank you very much!!

This worked for me: (0.) Deinstall Integration via HACS & retsart HA

  1. Download Integration via HACS
  2. Restart HA
  3. Change Version string in manifest.jason (homeassistant/custom_components/gardena_smart_system/manifest.json)
  4. Restart HA
  5. Install Integration via Integrations-> Add Integration
  6. Paste API-Key and API-Secret as credentials (follow instructions of integration)
  7. Dedicate your devices to areas (if prefered)
  8. Done.

— Reply to this email directly, view it on GitHub https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/193#issuecomment-1936511887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGI6VM5GUCATBSQG4YYTYSZ4TJAVCNFSM6AAAAABC6PMQ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWGUYTCOBYG4 . You are receiving this because you modified the open/close state.Message ID: <py-smart-gardena/hass-gardena-smart-system/issues/193/1936511887@ github.com>