Skip to content
Open
Changes from all commits
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
19 changes: 18 additions & 1 deletion viera.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def num(self, number):
for digit in str(number):
self._sendkey('NRC_D%s-ONOFF' % digit)

def power(self):
def input_tv(self):
self._sendkey('NRC_TV-ONOFF')

def toggle_3D(self):
Expand Down Expand Up @@ -116,6 +116,23 @@ def index(self):
def hold(self):
self._sendkey('NRC_HOLD-ONOFF')

def ch_up(self):
self._sendkey('NRC_CH_UP-ONOFF')

def ch_down(self):
self._sendkey('NRC_CH_DOWN-ONOFF')

def input(self):
self._sendkey('NRC_CHG_INPUT-ONOFF')

def last_view(self):
self._sendkey('NRC_R_TUNE-ONOFF')

def power_off(self):
self._sendkey('NRC_POWER-ONOFF')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention regarding the amount of whitespace between top level definitions is to put two blank new lines (not 3)
(see https://www.python.org/dev/peps/pep-0008/#blank-lines)



class Action(object):
def __init__(self, name, arguments):
self.name = name
Expand Down