Source code for caspia.meadow.services.switch
from .base import Characteristic, ServiceBase
[docs]class SwitchBase(ServiceBase):
""" Represents a binary switch. """
type = 'switch'
is_on = Characteristic('bool', 'RWN')
from .base import Characteristic, ServiceBase
[docs]class SwitchBase(ServiceBase):
""" Represents a binary switch. """
type = 'switch'
is_on = Characteristic('bool', 'RWN')