Bump pyheos (#23616)

This commit is contained in:
Andrew Sayre authored and Paulus Schoutsen committed 2019-05-01 22:39:59 -07:00
1 parent d1e44e35df
commit f3925b7ede
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ async def test_update_sources_retry(hass, config_entry, config, controller,
source_manager.max_retry_attempts = 1
controller.get_favorites.side_effect = CommandError("Test", "test", 0)
controller.dispatcher.send(
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_SOURCES_CHANGED)
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_SOURCES_CHANGED, {})
# Wait until it's finished
while "Unable to update sources" not in caplog.text:
await asyncio.sleep(0.1)
+3 -3
View File
@@ -104,7 +104,7 @@ async def test_updates_start_from_signals(
# Test controller player change updates
player.available = False
player.heos.dispatcher.send(
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_PLAYERS_CHANGED)
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_PLAYERS_CHANGED, {})
await hass.async_block_till_done()
state = hass.states.get('media_player.test_player')
assert state.state == STATE_UNAVAILABLE
@@ -159,7 +159,7 @@ async def test_updates_from_sources_updated(
input_sources.clear()
player.heos.dispatcher.send(
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_SOURCES_CHANGED)
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_SOURCES_CHANGED, {})
await event.wait()
source_list = hass.data[DOMAIN][DATA_SOURCE_MANAGER].source_list
assert len(source_list) == 2
@@ -182,7 +182,7 @@ async def test_updates_from_user_changed(
controller.is_signed_in = False
controller.signed_in_username = None
player.heos.dispatcher.send(
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_USER_CHANGED)
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_USER_CHANGED, None)
await event.wait()
source_list = hass.data[DOMAIN][DATA_SOURCE_MANAGER].source_list
assert len(source_list) == 1