Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote HA Broken with 2023.7 beta #236

Closed
broyuken opened this issue Jun 30, 2023 · 28 comments
Closed

Remote HA Broken with 2023.7 beta #236

broyuken opened this issue Jun 30, 2023 · 28 comments

Comments

@broyuken
Copy link

I get the following breaking error when I upgrade my HA to 2023.7 beta. I have only upgraded the main system that I am sharing entities from, the one I am sharing to has not been upgraded.

This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/remote_homeassistant/proxy_services.py:5
Integration: remote_homeassistant (documentation, issues)
First occurred: 11:38:13 AM (1 occurrences)
Last logged: 11:38:13 AM

Setup failed for custom integration remote_homeassistant: Unable to import component: cannot import name 'SERVICE_CALL_LIMIT' from 'homeassistant.core' (/usr/src/homeassistant/homeassistant/core.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
    component = integration.get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/remote_homeassistant/__init__.py", line 44, in <module>
    from .proxy_services import ProxyServices
  File "/config/custom_components/remote_homeassistant/proxy_services.py", line 5, in <module>
    from homeassistant.core import SERVICE_CALL_LIMIT
ImportError: cannot import name 'SERVICE_CALL_LIMIT' from 'homeassistant.core' (/usr/src/homeassistant/homeassistant/core.py)

@markjsmith
Copy link

I have a similar issue and I have updated the one that the info feeds to.
`This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/remote_homeassistant/proxy_services.py:5
Integration: remote_homeassistant (documentation, issues)
First occurred: 18:56:48 (1 occurrences)
Last logged: 18:56:48

Setup failed for custom integration remote_homeassistant: Unable to import component: cannot import name 'SERVICE_CALL_LIMIT' from 'homeassistant.core' (/usr/src/homeassistant/homeassistant/core.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/remote_homeassistant/init.py", line 44, in
from .proxy_services import ProxyServices
File "/config/custom_components/remote_homeassistant/proxy_services.py", line 5, in
from homeassistant.core import SERVICE_CALL_LIMIT
ImportError: cannot import name 'SERVICE_CALL_LIMIT' from 'homeassistant.core' (/usr/src/homeassistant/homeassistant/core.py)
`
The other instance is actually switched off

@acdcnow
Copy link

acdcnow commented Jul 3, 2023

looks like that SERVICE_CALL_LIMIT has been changed or removed since the changes on response on service in 2023.7

Lets see if this remain in the release as well, if so then a change is needed in remote HA , as this will block me any upgrade to 2023.7.0.

@alphasixtyfive
Copy link

Could be related.

home-assistant/core#94657

@malhalla
Copy link

malhalla commented Jul 5, 2023

Same problem with release of 2023.7

@TekFan
Copy link

TekFan commented Jul 5, 2023

I can confirm, this integration completely fails init in 2023.7 official release.
So it's broken for the time being.

@TheRealSimon42
Copy link

Same for me release 2023.7

@Arnsteinl
Copy link

Same here.....

@pcrednet
Copy link

pcrednet commented Jul 5, 2023

same problem with 2023.7
need to disable integration

Thx.

@jplivingston08
Copy link

Same here. I wish I checked before updating. Going to restore from backup for now.

@mchangsp
Copy link

mchangsp commented Jul 5, 2023

I have the same error in my log.
As a quick hack I did the following

  • Go to the file custom_components/remote_homeassistant/proxy services.py
  • Comment out line 5: # from homeassistant.core import SERVICE_CALL_LIMIT
  • insert a new line: SERVICE_CALL_LIMIT = 10
  • Reboot your HA 2023.7 instance

The remote_homeassistant integration should now load without problems during the reboot.

@jplivingston08
Copy link

@mchangsp - nice share ! I already downgraded. For anyone that chooses to downgrade, here is the short that I followed to do it in a few minutes. https://youtube.com/shorts/iigi1ZgUSMo?feature=share

@goldbe4804
Copy link

updated today to 2023.7.0 same problem as above !!

@seanosteen
Copy link

seanosteen commented Jul 6, 2023

I made the the modifications detailed by @mchangsp earlier today. This resolved the error and is an excellent workaround if you do not wish to downgrade. Thank you!

@mchangsp 's fix:

  • Go to the file custom_components/remote_homeassistant/proxy services.py
  • Comment out line 5: # from homeassistant.core import SERVICE_CALL_LIMIT
  • insert a new line: SERVICE_CALL_LIMIT = 10
  • Reboot your HA 2023.7 instance

@loomyr
Copy link

loomyr commented Jul 6, 2023

Question: Should this fix only correct the inability to restart HomeAssistant due to the error in the custom_components, or should it also allow remote_homeassistant to continue working? In my case, the remote_homeassistant device is in the "connecting" state but is unable to connect to my remote instance.

@petez69
Copy link

petez69 commented Jul 6, 2023

I have the same error in my log. As a quick hack I did the following

  • Go to the file custom_components/remote_homeassistant/proxy services.py
  • Comment out line 5: # from homeassistant.core import SERVICE_CALL_LIMIT
  • insert a new line: SERVICE_CALL_LIMIT = 10
  • Reboot your HA 2023.7 instance

The remote_homeassistant integration should now load without problems during the reboot.

Thanks for the temp fix.....

@PelonVela
Copy link

Same problem as the rest.

@smithbill17
Copy link

As everyone has said, this is an issue with the released 2023.7.0 version. Thank you to @mchangsp with his workaround.

@Joakim-T
Copy link

Joakim-T commented Jul 6, 2023

Question: Should this fix only correct the inability to restart HomeAssistant due to the error in the custom_components, or should it also allow remote_homeassistant to continue working? In my case, the remote_homeassistant device is in the "connecting" state but is unable to connect to my remote instance.

I applied the workaround fix on one of my Remote Assistant instances where i updated HA to 2023.7.
Then reloaded the integration on my main HA instance and it connected.

I have not updated my main instance to 2023.7 though.

@renewoensdregt
Copy link

workaround solved the issue!

@1onord
Copy link

1onord commented Jul 6, 2023

thanks to @mchangsp your fix fixes my Day ;)

@juanperez61
Copy link

thanks to @mchangsp

Muchisimas gracias :)

wojked added a commit to wojked/remote_homeassistant that referenced this issue Jul 6, 2023
@wojked
Copy link
Contributor

wojked commented Jul 6, 2023

Thank you @mchangsp so much! saved my day too, I have created a PR so it would be easier to see
https://github.com/custom-components/remote_homeassistant/pull/238/files

@lpt2007
Copy link

lpt2007 commented Jul 6, 2023

When we can expect integration update to correct this error?

@lukas-hetzenecker
Copy link
Member

Thanks for the reports

When we can expect integration update to correct this error?

I will aim to release a new version either this evening, or tomorrow

lukas-hetzenecker pushed a commit that referenced this issue Jul 6, 2023
* Update proxy_services.py to include SERVICE_CALL_LIMIT

Like described here:

#236
@seanosteen
Copy link

I just pulled down version 3.9 on both my main and remote hosts. remote_homeassistant v 3.9 appears to be working as expected on both hass.io 2023.7.0 and docker 2030.7.0 instances. Thank you @lukas-hetzenecker, @wojked, and @mchangsp for your quick work on this fix 👍

@lukas-hetzenecker
Copy link
Member

Thanks for the confirmation and @wojked for the fix

@wojked
Copy link
Contributor

wojked commented Jul 6, 2023

All credits to @mchangsp

@jplivingston08
Copy link

@lukas-hetzenecker - Really appreciate this integration. It works so well and has allowed me to manage multiple HA instances from one view. Thanks for developing and maintaining !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests