Skip to content

Commit

Permalink
Fix for HA 0.88.0 architecture change (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse authored Feb 20, 2019
1 parent 3987b4d commit cfa34c8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions media_player/alexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
VERSION 0.10.1
VERSION 0.10.2
"""
import logging

Expand All @@ -14,11 +14,13 @@

from homeassistant import util
from homeassistant.components.media_player import (
MEDIA_TYPE_MUSIC, PLATFORM_SCHEMA, SUPPORT_NEXT_TRACK,
MediaPlayerDevice, MEDIA_PLAYER_SCHEMA, PLATFORM_SCHEMA)
from homeassistant.components.media_player.const import (
MEDIA_TYPE_MUSIC, SUPPORT_NEXT_TRACK,
SUPPORT_PAUSE, SUPPORT_PLAY, SUPPORT_PREVIOUS_TRACK,
SUPPORT_STOP, SUPPORT_TURN_OFF, SUPPORT_VOLUME_MUTE,
SUPPORT_PLAY_MEDIA, SUPPORT_VOLUME_SET,
MediaPlayerDevice, DOMAIN, MEDIA_PLAYER_SCHEMA,
DOMAIN,
SUPPORT_SELECT_SOURCE)
from homeassistant.const import (
CONF_EMAIL, CONF_PASSWORD, CONF_URL,
Expand Down Expand Up @@ -281,7 +283,7 @@ def __init__(self, config, session, device, update_devices, url,
self.auth = authentication
self.alexa_api_session = session
self.alexa_api_url = url

# Logged in info
self._authenticated = None
self._can_access_prime_music = None
Expand Down Expand Up @@ -1157,4 +1159,3 @@ def get_authentication(url, session):
_LOGGER.error("An error occured accessing the API: {}".format(
message))
return None

0 comments on commit cfa34c8

Please sign in to comment.