Hello all,
just moved over from openHAB to Home Assistant a few weeks ago.
I don’t know why but the Apple TV Integration stopped working yesterday.
I’m running Home Assistant 2022.3.7 on a raspberry pi.
In the logs the first ERROR I get is:
Logger: homeassistant.setup
Source: setup.py:162
First occurred: 9:43:46 PM (1 occurrences)
Last logged: 9:43:46 PM
Setup failed for apple_tv: Unable to import component: Exception importing homeassistant.components.apple_tv
After that this:
Logger: homeassistant.loader
Source: components/apple_tv/__init__.py:6
First occurred: 9:43:46 PM (35 occurrences)
Last logged: 9:44:45 PM
Unexpected exception importing component homeassistant.components.apple_tv
Unexpected exception importing platform homeassistant.components.apple_tv.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 553, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/apple_tv/__init__.py", line 6, in <module>
from pyatv import connect, exceptions, scan
File "/usr/local/lib/python3.9/site-packages/pyatv/__init__.py", line 24, in <module>
from pyatv.protocols import PROTOCOLS
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/__init__.py", line 10, in <module>
from pyatv.protocols import airplay as airplay_proto
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/airplay/__init__.py", line 28, in <module>
from pyatv.protocols import mrp
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/__init__.py", line 56, in <module>
from pyatv.protocols.mrp import messages, protobuf
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/messages.py", line 8, in <module>
from pyatv.protocols.mrp import protobuf
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/protobuf/__init__.py", line 6, in <module>
from .ProtocolMessage_pb2 import ProtocolMessage
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py", line 21, in <module>
_ERRORCODE = DESCRIPTOR.message_types_by_name['ErrorCode']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'
and this:
Logger: homeassistant.config_entries
Source: config_entries.py:745
First occurred: 9:44:02 PM (34 occurrences)
Last logged: 9:44:45 PM
Error occurred loading configuration flow for integration apple_tv: Exception importing homeassistant.components.apple_tv.config_flow
I tried to uninstall the integration but didn’t work. I can just disable it.
Maybe someone can help me to fix it?
Best regards
Markus
EDIT: Is it maybe a problem that “mbapi2020” uses protobuf 3.14.0?