import struct
from enigma import eHdmiCEC
from os import system
-from __init__ import _
from Components.InputDevice import iInputDevices
class HdmiCecPlugin(Screen,ConfigListScreen):
eHdmiCEC.getInstance().messageReceivedKey.get().append(messageReceivedKey)
def Plugins(**kwargs):
- return [PluginDescriptor(name=_("HDMI-CEC"), description="HDMI-CEC Configuration", where = PluginDescriptor.WHERE_PLUGINMENU, icon="hdmicec.png", needsRestart = True, fnc=openconfig),
+ return [PluginDescriptor(name=_("HDMI-CEC"), description="HDMI-CEC Configuration", where = PluginDescriptor.WHERE_PLUGINMENU, needsRestart = True, fnc=openconfig),
PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart)]
def messageReceived(address, message):