Hi, i have the following error, i also delete in config_entries, but still the same after reboot, can you help me?
Logger: homeassistant
Source: config_entries.py:740
First occurred: 7:40:29 AM (10 occurrences)
Last logged: 7:41:08 AM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 566, in get_platform
cache[full_name] = self._import_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 583, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 972, in _find_and_load_unlocked
File “”, line 228, in _call_with_frames_removed
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/apple_tv/init.py”, line 6, in
from pyatv import connect, exceptions, scan
File “/usr/local/lib/python3.9/site-packages/pyatv/init.py”, line 24, in
from pyatv.protocols import PROTOCOLS
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/init.py”, line 10, in
from pyatv.protocols import airplay as airplay_proto
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/airplay/init.py”, line 28, in
from pyatv.protocols import mrp
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/init.py”, line 56, in
from pyatv.protocols.mrp import messages, protobuf
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/messages.py”, line 8, in
from pyatv.protocols.mrp import protobuf
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/protobuf/init.py”, line 6, in
from .ProtocolMessage_pb2 import ProtocolMessage
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py”, line 21, in
_ERRORCODE = DESCRIPTOR.message_types_by_name[‘ErrorCode’]
AttributeError: ‘NoneType’ object has no attribute ‘message_types_by_name’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 733, in async_create_flow
integration.get_platform(“config_flow”)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 575, in get_platform
raise ImportError(
ImportError: Exception importing homeassistant.components.apple_tv.config_flow
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py”, line 74, in async_process_pending_flows
await gather_with_concurrency(
File "/usr/src/homeassistant/homeassistant/util/async.py", line 185, in gather_with_concurrency
return await gather(
File “/usr/src/homeassistant/homeassistant/util/async_.py”, line 183, in sem_task
return await task
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 203, in async_init
flow, result = await task
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 221, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 740, in async_create_flow
raise data_entry_flow.UnknownHandler
homeassistant.data_entry_flow.UnknownHandler
and also
This error originated from a custom integration.
Logger: homeassistant.loader
Source: custom_components/apple_tv/init.py:6
Integration: Apple TV
First occurred: 7:52:35 AM (259 occurrences)
Last logged: 8:15:10 AM
Unexpected exception importing platform custom_components.apple_tv.config_flow
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 566, in get_platform
cache[full_name] = self._import_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 583, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 972, in _find_and_load_unlocked
File “”, line 228, in _call_with_frames_removed
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/config/custom_components/apple_tv/init.py”, line 6, in
from pyatv import connect, exceptions, scan
File “/usr/local/lib/python3.9/site-packages/pyatv/init.py”, line 24, in
from pyatv.protocols import PROTOCOLS
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/init.py”, line 10, in
from pyatv.protocols import airplay as airplay_proto
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/airplay/init.py”, line 28, in
from pyatv.protocols import mrp
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/init.py”, line 56, in
from pyatv.protocols.mrp import messages, protobuf
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/messages.py”, line 8, in
from pyatv.protocols.mrp import protobuf
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/protobuf/init.py”, line 6, in
from .ProtocolMessage_pb2 import ProtocolMessage
File “/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py”, line 21, in
_ERRORCODE = DESCRIPTOR.message_types_by_name[‘ErrorCode’]
AttributeError: ‘NoneType’ object has no attribute ‘message_types_by_name’