mirror of
https://github.com/fmtr/haco.git
synced 2026-10-26 10:51:46 -04:00
14 lines
268 B
Python
14 lines
268 B
Python
from haco.control import Control
|
|
|
|
from haco.tools import invert_bool
|
|
|
|
|
|
class Switch(Control):
|
|
NAME = 'switch'
|
|
|
|
def __init__(self, name, icon=None):
|
|
super().__init__(name, icon=icon)
|
|
|
|
@property
|
|
def control_type(self):
|
|
return invert_bool
|