Async support in media player component (#4995)

* Async support in media player component

* Removed redundant new tests

* Update to new 'reduce coroutine' standards

* Remove extra create_task
This commit is contained in:
Adam Mills authored and Paulus Schoutsen committed 2017-01-03 23:51:23 +01:00
1 parent b78cf4772d
commit 2a7a419ff3
2 files changed
+244 -134

No files matched your search

+1 -2
View File
@@ -69,7 +69,6 @@ class TestDemoMediaPlayer(unittest.TestCase):
self.hass, mp.DOMAIN,
{'media_player': {'platform': 'demo'}})
state = self.hass.states.get(entity_id)
print(state)
assert 1.0 == state.attributes.get('volume_level')
mp.set_volume_level(self.hass, None, entity_id)
@@ -203,7 +202,7 @@ class TestDemoMediaPlayer(unittest.TestCase):
state.attributes.get('supported_media_commands'))
@patch('homeassistant.components.media_player.demo.DemoYoutubePlayer.'
'media_seek')
'media_seek', autospec=True)
def test_play_media(self, mock_seek):
"""Test play_media ."""
assert setup_component(