sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
38 stars 24 forks source link

cannot import name 'MediaPlayerEntity' #34

Closed alexyr closed 4 years ago

alexyr commented 4 years ago

Manualy installed into homeassistant-0.109.6 in virtual environment

See following error in log:

2020-05-19 17:54:20 ERROR (MainThread) [homeassistant.components.homeassistant] Platform error media_player.samsungtv_encrypted - cannot import name 'MediaPlayerEntity' from 'homeassistant.components.media_player' (/home/ubuntu/hass/homeassistant/lib/python3.7/site-packages/homeassistant/components/media_player/__init__.py)
alexyr commented 4 years ago

I see in the source code "class MediaPlayerDevice(Entity):" but no MediaPlayerEntity homeassistant/components/media_player/init.py

sermayoral commented 4 years ago

You have installed a version that its not ready for 0.109 (see https://github.com/sermayoral/ha-samsungtv-encrypted/issues/28)

HACS does not let you to install v2.6 version, but you have done it manually. This is why you have got this error.

Please, use the v2.5 version until you get 0.110 of Home Assistant