2018-11-16 20:35:59 +01:00
|
|
|
__all__ = ["CBPiActor"]
|
2018-11-01 19:50:04 +01:00
|
|
|
|
2018-11-01 21:25:42 +01:00
|
|
|
import logging
|
2018-11-01 19:50:04 +01:00
|
|
|
|
2018-11-01 21:25:42 +01:00
|
|
|
from core.api.extension import CBPiExtension
|
2018-11-01 21:27:37 +01:00
|
|
|
from core.utils.utils import load_config as load
|
2018-11-01 21:25:42 +01:00
|
|
|
logger = logging.getLogger(__file__)
|
2018-11-01 19:50:04 +01:00
|
|
|
|
2018-11-01 21:25:42 +01:00
|
|
|
class CBPiActor(CBPiExtension):
|
|
|
|
|
|
|
|
def __init__(self, cbpi):
|
2018-11-16 20:35:59 +01:00
|
|
|
self.id = ""
|
|
|
|
self.state = None
|
2018-11-01 19:50:04 +01:00
|
|
|
self.name = ""
|
|
|
|
|
|
|
|
def on(self, power):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def off(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def state(self):
|
|
|
|
pass
|