Is it me or is the iCloud integration broken in this release? I get a “Config flow cannot be loaded” error when I try to add this integration again also see log below. First I removed it because it was giving errors during startup and did not load the entities.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2851, in get_entry_map
ep_map = self._ep_map
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2813, in __getattr__
raise AttributeError(attr)
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 128, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 72, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 150, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 168, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 669, in async_create_flow
integration.get_platform("config_flow")
File "/usr/src/homeassistant/homeassistant/loader.py", line 493, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/icloud/__init__.py", line 12, in <module>
from .account import IcloudAccount
File "/usr/src/homeassistant/homeassistant/components/icloud/account.py", line 9, in <module>
from pyicloud import PyiCloudService
File "/usr/local/lib/python3.8/site-packages/pyicloud/__init__.py", line 3, in <module>
from pyicloud.base import PyiCloudService
File "/usr/local/lib/python3.8/site-packages/pyicloud/base.py", line 20, in <module>
from pyicloud.services import (
File "/usr/local/lib/python3.8/site-packages/pyicloud/services/__init__.py", line 8, in <module>
from pyicloud.services.account import AccountService
File "/usr/local/lib/python3.8/site-packages/pyicloud/services/account.py", line 6, in <module>
from pyicloud.utils import underscore_to_camelcase
File "/usr/local/lib/python3.8/site-packages/pyicloud/utils.py", line 3, in <module>
import keyring
File "/usr/local/lib/python3.8/site-packages/keyring/__init__.py", line 6, in <module>
from .core import (set_keyring, get_keyring, set_password, get_password,
File "/usr/local/lib/python3.8/site-packages/keyring/core.py", line 149, in <module>
init_backend()
File "/usr/local/lib/python3.8/site-packages/keyring/core.py", line 65, in init_backend
keyrings = filter(limit, backend.get_all_keyring())
File "/usr/local/lib/python3.8/site-packages/keyring/util/__init__.py", line 20, in wrapper
func.always_returns = func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/keyring/backend.py", line 167, in get_all_keyring
_load_backends()
File "/usr/local/lib/python3.8/site-packages/keyring/backend.py", line 128, in _load_backends
_load_plugins()
File "/usr/local/lib/python3.8/site-packages/keyring/backend.py", line 152, in _load_plugins
for ep in entry_points:
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 641, in <genexpr>
for entry in dist.get_entry_map(group).values()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2853, in get_entry_map
ep_map = self._ep_map = EntryPoint.parse_map(
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2534, in parse_map
for group, lines in data:
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3190, in split_sections
for line in yield_lines(s):
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2394, in yield_lines
for ss in strs:
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2765, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1417, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1409, in get_metadata
return value.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 2: invalid start byte in entry_points.txt file at path: /usr/local/lib/python3.8/site-packages/pandas-1.2.4.dist-info/entry_points.txt