mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
* Updated based on review comments * fix hound * Update homeassistant/components/media_player/enigma2.py * Update homeassistant/components/media_player/enigma2.py * Update homeassistant/components/media_player/enigma2.py * Update enigma2.py * Update enigma2.py * Move file and update docsstring * Fix path in coverage rc file * requirements * Update media_player.py * Setup discovery for e2 * Handle discovered devices * Add reqs * Update for auth for openwebif * Forget to set DEFAULT_PASSWORD * Add source selection * Fix get current source name * Update pip version * - adding some extra attributes - support better recording playback integration * bump pip version * Bump pip * Adding prefer_picon config option * Updates to move logic into pypi module * bump pip * bump pip * - remove http dependancy. - rename prefer_picon to use_channel_icon * Bump pypi to fix toggle bug. also fix travis also move setup out of init
19 lines
549 B
Python
19 lines
549 B
Python
"""Support for Enigma2 devices."""
|
|
from homeassistant.components.discovery import SERVICE_ENIGMA2
|
|
from homeassistant.helpers.discovery import load_platform
|
|
from homeassistant.helpers import discovery
|
|
|
|
DOMAIN = 'enigma2'
|
|
|
|
|
|
def setup(hass, config):
|
|
"""Set up the Enigma2 platform."""
|
|
def device_discovered(service, info):
|
|
"""Handle when an Enigma2 device has been discovered."""
|
|
load_platform(hass, 'media_player', DOMAIN, info, config)
|
|
|
|
discovery.listen(
|
|
hass, SERVICE_ENIGMA2, device_discovered)
|
|
|
|
return True
|