added some complexity

This commit is contained in:
John Lancaster
2025-01-28 17:49:44 -06:00
parent fe9a713fe2
commit 370ed2805b
6 changed files with 41 additions and 7 deletions

View File

@@ -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')

View File

@@ -1,5 +0,0 @@
class Rule1:
...
class Rule2:
...

View File

@@ -1,2 +1,8 @@
import logging
logger = logging.getLogger('AppDaemon.Perimeter')
logger.info('Imported statemachine')
class StateMachine:
...

View 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