14 lines
339 B
Python
14 lines
339 B
Python
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()
|