Skip to content

Instantly share code, notes, and snippets.

View saml-dev's full-sized avatar

saml-dev

View GitHub Profile
@dlashua
dlashua / appmodule.py
Last active December 11, 2021 07:09
a base app in AppDaemon
import appdaemon.plugins.hass.hassapi as hass
import base
class MyApp(hass.Hass):
def initialize(self):
self.depends_on_module(base)
base.App(self)
res = self.something()
self.log(res) # logs "thing" from base.py