Updating to HA 2202.2 breaks Apple TV Integration
See original GitHub issueDescribe the bug
Ive tried all possibilities now, I was on atv-beta and wanted to switch to the official integration now. after some reboots the integration stop working . Is there something I can do to preserve my working config?
Error log
Logger: homeassistant.config_entries
Source: config_entries.py:735
First occurred: 14:44:38 (198 occurrences)
Last logged: 14:49:26
Error occurred loading configuration flow for integration apple_tv: Exception importing custom_components.apple_tv.config_flow
Logger: homeassistant.loader
Source: components/apple_tv/__init__.py:6
First occurred: 14:53:55 (39 occurrences)
Last logged: 14:54:49
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 547, 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'
How to reproduce the bug?
rollback to snapshot 2021.12.10 and then updating , removing HACS integration, restarting Home Assistant and then it stops working
What is expected behavior?
same experience like 2021.12.10
Operating System
supervised home assistant ubuntu 20.04
Python
3.9
pyatv
included version of current HACS integration or stable HA
Device
HomePod Minis and Apple TV all on *OS15.03
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Apple TV errors even though I don't have Apple TV #65498
I am getting errors (as below) about Apple TV in the HA log file. I don't use the Apple TV integration and I...
Read more >About Apple TV 4K and Apple TV HD software updates
Set your Siri language to be different from the one your Apple TV displays. Go to Settings > General > Siri Language.
Read more >Update your Apple TV - Apple Support
Go to Settings > System > Software Updates and select Update Software. If there's an update, select Download and Install.
Read more >If you can't watch or stream movies and TV shows in the Apple ...
Learn what to do if you have trouble streaming a movie or TV show over a Wi-Fi or cellular connection. Update to the...
Read more >If your Siri Remote or Apple TV Remote isn't working
Restart your remote If your remote still isn't working as expected, try restarting your remote. Press and hold the TV/Control Center button and ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@apfelflo89 mbapi2020 it is. I also had this integration installed. Removing the integration, uninstalling it from HACS, and then updating HA to 2022.02.1 solved the issue for me. I’ll open a ticket in that repo.
released a new version of mbapi2020 and changed the protobuf version to 3.19.1