Skip to content

Commit

Permalink
Merge pull request #271 from alandtse/1.4.0
Browse files Browse the repository at this point in the history
Bump to 1.4.1
  • Loading branch information
alandtse authored Aug 8, 2019
2 parents 5c161e6 + abc9d9c commit 94b5c57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""
from datetime import timedelta

__version__ = '1.4.0'
__version__ = '1.4.1'
PROJECT_URL = "https://github.com/keatontaylor/alexa_media_player/"
ISSUE_URL = "{}issues".format(PROJECT_URL)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def refresh(self, device=None):
self._cluster_members = device['clusterMembers']
self._bluetooth_state = device['bluetooth_state']
self._locale = device['locale'] if 'locale' in device else 'en-US'
self._dnd = device['dnd']
self._dnd = device['dnd'] if 'dnd' in device else None
if self._available is True:
_LOGGER.debug("%s: Refreshing %s", self.account, self.name)
self._source = self._get_source()
Expand Down
5 changes: 3 additions & 2 deletions custom_components/alexa_media/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ def setup_platform(hass, config, add_devices_callback,
[account]
['entities']
['switch'][key][switch_key]) = alexa_client
_LOGGER.debug("%s: Found %s %s switch",
_LOGGER.debug("%s: Found %s %s switch with status: %s",
hide_email(account),
hide_serial(key),
switch_key)
switch_key,
alexa_client.is_on)
devices.append(alexa_client)
if devices:
add_devices_callback(devices, True)
Expand Down

0 comments on commit 94b5c57

Please sign in to comment.