craftbeerpi4-pione/core/api/actor.py

21 lines
363 B
Python
Raw Normal View History

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-01 19:50:04 +01:00
self.id = "";
self.name = ""
def on(self, power):
pass
def off(self):
pass
def state(self):
pass