ERROR (MainThread) [homeassistant.config] Platform error: media_player
Traceback (most recent call last):
File "/var/www/homeassistant/lib/python3.8/site-packages/homeassistant/config.py", line 777, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/var/www/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 278, in get_platform
cache[full_name] = importlib.import_module(
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 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 "/var/lib/asterisk/.homeassistant/custom_components/smartir/media_player.py", line 8, in <module>
from homeassistant.components.media_player import (
ImportError: cannot import name 'MediaPlayerEntity' from 'homeassistant.components.media_player' (/var/www/homeassistant/lib/python3.8/site-packages/homeassistant/components/media_player/__init__.py)
Home Assistant 0.109.6 SmartIR 1.11.0
yaml
Json
Got error...