How to use the pywebostv.controls.InputControl function in pywebostv

To help you get started, we’ve selected a few pywebostv examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github supersaiyanmode / PyWebOSTV / pywebostv / controls.py View on Github external
def __init__(self, *args, **kwargs):
        self.ws_class = kwargs.pop('ws_class', WebOSWebSocketClient)
        super(InputControl, self).__init__(*args, **kwargs)
github grimpy / koditools / koditools / plugins / lgtv.py View on Github external
def get_control(self, controltype):
        if controltype not in self.clients: 
            if controltype == 'media':
                control = MediaControl(self.client)
            elif controltype == 'input':
                control = InputControl(self.client)
                control.connect_input()
            elif controltype == 'system':
                control = SystemControl(self.client)
            elif controltype == 'source':
                control = SourceControl(self.client)
            self.clients[controltype] = control
        return self.clients[controltype]