nstrelow / ha_philips_android_tv

Home Assistant custom component for the newer (2016+) Philips Android TVs
109 stars 28 forks source link

ImportError: cannot import name 'MediaPlayerEntity' #40

Closed jlucasgithub closed 4 years ago

jlucasgithub commented 4 years ago

Hi

After update, component doesn't work with Home Assistant 0.109.6... Is there a simple way to make it work again?

Thanks

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config.py", line 777, in async_process_component_config platform = p_integration.get_platform(domain) File "/usr/src/homeassistant/homeassistant/loader.py", line 279, in get_platform f"{self.pkg_path}.{platform_name}" File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/config/custom_components/philips_android_tv/media_player.py", line 9, in from homeassistant.components.media_player import ( ImportError: cannot import name 'MediaPlayerEntity' from 'homeassistant.components.media_player' (/usr/src/homeassistant/homeassistant/components/media_player/init.py)

olbjan commented 4 years ago

Easy: Update to HA 0.110

nstrelow commented 4 years ago

As @olbjan said, please update to HA 0.110. https://www.home-assistant.io/blog/2020/05/20/release-110/