Skip to content

Commit 94b5c57

Browse files
authored
Merge pull request #271 from alandtse/1.4.0
Bump to 1.4.1
2 parents 5c161e6 + abc9d9c commit 94b5c57

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

custom_components/alexa_media/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010
from datetime import timedelta
1111

12-
__version__ = '1.4.0'
12+
__version__ = '1.4.1'
1313
PROJECT_URL = "https://github.com/keatontaylor/alexa_media_player/"
1414
ISSUE_URL = "{}issues".format(PROJECT_URL)
1515

custom_components/alexa_media/media_player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def refresh(self, device=None):
276276
self._cluster_members = device['clusterMembers']
277277
self._bluetooth_state = device['bluetooth_state']
278278
self._locale = device['locale'] if 'locale' in device else 'en-US'
279-
self._dnd = device['dnd']
279+
self._dnd = device['dnd'] if 'dnd' in device else None
280280
if self._available is True:
281281
_LOGGER.debug("%s: Refreshing %s", self.account, self.name)
282282
self._source = self._get_source()

custom_components/alexa_media/switch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ def setup_platform(hass, config, add_devices_callback,
6969
[account]
7070
['entities']
7171
['switch'][key][switch_key]) = alexa_client
72-
_LOGGER.debug("%s: Found %s %s switch",
72+
_LOGGER.debug("%s: Found %s %s switch with status: %s",
7373
hide_email(account),
7474
hide_serial(key),
75-
switch_key)
75+
switch_key,
76+
alexa_client.is_on)
7677
devices.append(alexa_client)
7778
if devices:
7879
add_devices_callback(devices, True)

0 commit comments

Comments
 (0)