def media_pause(hass, entity_id=None):
    data = {ATTR_ENTITY_ID: entity_id} if entity_id else {}
    hass.services.call(DOMAIN, SERVICE_MEDIA_PAUSE, data)
A discount should be properly applied to the basket line
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/__init__.py/media_pause--crossover with--dataset/ETHPy150Open django-oscar/django-oscar-api/oscarapi/tests/testoffer.py/OfferTest.test_basket_line_discount