more complexity in the test cases
This commit is contained in:
13
apps/automationlib/automationlib.py
Normal file
13
apps/automationlib/automationlib.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import arrow
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
|
||||
class AutomationLib:
|
||||
"""This is the documentation for AutomationLib"""
|
||||
|
||||
def __init__(self, ad: ADAPI) -> None:
|
||||
self.ad = ad
|
||||
self.ad.log(f"AutomationLib initialised for app '{self.ad.name}'", level='DEBUG')
|
||||
|
||||
def dow(self):
|
||||
return arrow.now().isoweekday()
|
||||
Reference in New Issue
Block a user