added some complexity
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger('AppDaemon.Perimeter')
|
||||
|
||||
class HAL:
|
||||
...
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
logger.info('Logging from HAL')
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
class Rule1:
|
||||
...
|
||||
|
||||
class Rule2:
|
||||
...
|
||||
@@ -1,2 +1,8 @@
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger('AppDaemon.Perimeter')
|
||||
logger.info('Imported statemachine')
|
||||
|
||||
|
||||
class StateMachine:
|
||||
...
|
||||
|
||||
11
conf/apps/deep/arbitrary/rules.py
Normal file
11
conf/apps/deep/arbitrary/rules.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Rule1:
|
||||
state: str
|
||||
|
||||
@dataclass
|
||||
class Rule2:
|
||||
value: int
|
||||
other: str = "default" # test changing this
|
||||
Reference in New Issue
Block a user