mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Guard partial upgrade (#54617)
This commit is contained in:
parent
8d1bd55b68
commit
dd1ef7fa55
@ -65,6 +65,11 @@ def async_setup_forwarded(
|
||||
|
||||
try:
|
||||
from hass_nabucasa import remote # pylint: disable=import-outside-toplevel
|
||||
|
||||
# venv users might have already loaded it before it got upgraded so guard for this
|
||||
# This can only happen when people upgrade from before 2021.8.5.
|
||||
if not hasattr(remote, "is_cloud_request"):
|
||||
remote = None
|
||||
except ImportError:
|
||||
remote = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user