remote_homeassistant: Remote HA Broken with 2023.7 beta
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)
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 8
- Comments: 28 (4 by maintainers)
Commits related to this issue
- Update proxy_services.py to include SERVICE_CALL_LIMIT Like described here: https://github.com/custom-components/remote_homeassistant/issues/236 — committed to wojked/remote_homeassistant by wojked a year ago
- Update proxy_services.py to include SERVICE_CALL_LIMIT (#238) * Update proxy_services.py to include SERVICE_CALL_LIMIT Like described here: https://github.com/custom-components/remote_homeassis... — committed to custom-components/remote_homeassistant by wojked a year ago
I have the same error in my log. As a quick hack I did the following
The remote_homeassistant integration should now load without problems during the reboot.
Same problem with release of 2023.7
Thanks for the reports
I will aim to release a new version either this evening, or tomorrow
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:
All credits to @mchangsp
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 👍
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
@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 !
Thanks for the confirmation and @wojked for the fix
Thanks for the temp fix…
Same for me release 2023.7
I can confirm, this integration completely fails init in 2023.7 official release. So it’s broken for the time being.
thanks to @mchangsp
Muchisimas gracias 😃
thanks to @mchangsp your fix fixes my Day 😉
workaround solved the issue!
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.
As everyone has said, this is an issue with the released 2023.7.0 version. Thank you to @mchangsp with his workaround.
@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