async def async_play_media(self, media_type, media_id, **kwargs):
    'Support changing a channel.'
    if (media_type != MEDIA_TYPE_CHANNEL):
        _LOGGER.error('Unsupported media type')
        return
    try:
        cv.positive_int(media_id)
    except vol.Invalid:
        _LOGGER.error('Media ID must be positive integer')
        return
    for digit in media_id:
        (await self.hass.async_add_job(self.send_key, ('KEY_' + digit)))
        (await asyncio.sleep(KEY_PRESS_TIMEOUT, self.hass.loop))
    (await self.hass.async_add_job(self.send_key, 'KEY_ENTER'))
Support changing a channel.
async def async_play_media(self, media_type, media_id, **kwargs):
    
    if (media_type != MEDIA_TYPE_CHANNEL):
        _LOGGER.error('Unsupported media type')
        return
    try:
        cv.positive_int(media_id)
    except vol.Invalid:
        _LOGGER.error('Media ID must be positive integer')
        return
    for digit in media_id:
        (await self.hass.async_add_job(self.send_key, ('KEY_' + digit)))
        (await asyncio.sleep(KEY_PRESS_TIMEOUT, self.hass.loop))
    (await self.hass.async_add_job(self.send_key, 'KEY_ENTER'))