def test_clear_playlist(self): """Test clear playlist.""" assert setup_component( self.hass, mp.DOMAIN, {"media_player": {"platform": "demo"}} ) assert self.hass.states.is_state(entity_id, "playing") common.clear_playlist(self.hass, entity_id) self.hass.block_till_done() assert self.hass.states.is_state(entity_id, "off")
def test_clear_playlist(self): """Test clear playlist.""" assert setup_component( self.hass, mp.DOMAIN, {'media_player': {'platform': 'demo'}}) assert self.hass.states.is_state(entity_id, 'playing') common.clear_playlist(self.hass, entity_id) self.hass.block_till_done() assert self.hass.states.is_state(entity_id, 'off')
def test_clear_playlist(self): """Test clear playlist.""" assert setup_component( self.hass, mp.DOMAIN, {'media_player': {'platform': 'demo'}}) assert self.hass.states.is_state(entity_id, 'playing') common.clear_playlist(self.hass, entity_id) self.hass.block_till_done() assert self.hass.states.is_state(entity_id, 'off')