Adding enigma2 media player (#21271)
* 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
This commit is contained in:
1 parent
dfd9f7ccf3
commit
4571f1bf0d
5 files changed
+245
No files matched your search
@@ -0,0 +1,18 @@
|
||||
"""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
|
||||
Reference in new issue
Block a user