Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
SERVICE_HASSIO: ('hassio', None),
SERVICE_AXIS: ('axis', None),
SERVICE_APPLE_TV: ('apple_tv', None),
SERVICE_ENIGMA2: ('enigma2', None),
SERVICE_ENIGMA2: ('media_player', 'enigma2'),
Comment thread
fbradyirl marked this conversation as resolved.
SERVICE_ROKU: ('roku', None),
SERVICE_WINK: ('wink', None),
SERVICE_XIAOMI_GW: ('xiaomi_aqara', None),
Expand Down
12 changes: 8 additions & 4 deletions homeassistant/components/enigma2/media_player.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Support for Enigma2 media players."""
import logging
import asyncio

import voluptuous as vol

Expand Down Expand Up @@ -195,8 +194,7 @@ def source_list(self):
"""List of available input sources."""
return self.e2_box.source_list

@asyncio.coroutine
def async_select_source(self, source):
def select_source(self, source):
"""Select input source."""
self.e2_box.select_source(self.e2_box.sources[source])

Expand All @@ -206,7 +204,13 @@ def update(self):

@property
def device_state_attributes(self):
"""Return device specific state attributes."""
"""Return device specific state attributes.

isRecording: Is the box currently recording.
currservice_fulldescription: Full program description.
currservice_begin: is in the format '21:00'.
currservice_end: is in the format '21:00'.
"""
attributes = {}
if not self.e2_box.in_standby:
attributes[ATTR_MEDIA_CURRENTLY_RECORDING] = \
Expand Down