Code Monkey home page Code Monkey logo

beoplay-custom-component's People

Contributors

martonborzak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

beoplay-custom-component's Issues

MediaPlayerDevice is deprecated

Home assistant throws warning in log:
Logger: homeassistant.components.media_player
Source: components/media_player/init.py:938
Integration: Media player (documentation, issues)
MediaPlayerDevice is deprecated, modify BeoPlay to extend MediaPlayerEntity

Changing tunein radio station triggers an error

How to reproduce:

  1. Use the "Bang&Olufsen" mobile app to make the device play music from a radio station via tunein
  2. Confirm that the radio station logo is displayed as expected in Home Assistant
  3. Use the "Bang&Olufsen" mobile app to change the radio station

Expected result:
Station logo and name updated in the Home Assistant UI.

Actual result:
Station logo and name is not updated and the Home Assistant log shows the following:

2019-05-17 15:37:58 ERROR (MainThread) [custom_components.beoplay.media_player] Unexpected error in Beoplay M5
Traceback (most recent call last):
  File "/Users/tlk/.homeassistant/custom_components/beoplay/media_player.py", line 171, in _start_poll_command
    await self.async_update_status()
  File "/Users/tlk/.homeassistant/custom_components/beoplay/media_player.py", line 219, in async_update_status
    self._speaker.getMusicInfo(data_json)
  File "/Users/tlk/projects/home-assistant/venv/lib/python3.7/site-packages/beoplay/__init__.py", line 125, in getMusicInfo
    if data["notification"]["data"]["liveDescription"]:
KeyError: 'liveDescription'

Valid config HomeAssistant fault

Platform error media_player.beoplay - cannot import name 'CancelledError' from 'asyncio.futures' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/futures.py)
Platform error media_player.beoplay - cannot import name 'CancelledError' from 'asyncio.futures' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/futures.py)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.