From 06e4fbcbdb6a8e53b0c6f3da2c3e8ca3659e6069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 26 Dec 2018 00:47:21 +0100 Subject: [PATCH] Prepare for appdaemon --- .gitignore | 4 ++++ appdaemon/apps/hello.py | 12 ++++++++++++ appdaemon/apps/helloworld.yaml | 4 ++++ 3 files changed, 20 insertions(+) create mode 100644 appdaemon/apps/hello.py create mode 100644 appdaemon/apps/helloworld.yaml diff --git a/.gitignore b/.gitignore index 309f1ad..4987828 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,7 @@ !.gitignore !configuration.yaml !packages/ +**/__pycache__/ +!/appdaemon/ +/appdaemon/* +!/appdaemon/apps diff --git a/appdaemon/apps/hello.py b/appdaemon/apps/hello.py new file mode 100644 index 0000000..0ef8f01 --- /dev/null +++ b/appdaemon/apps/hello.py @@ -0,0 +1,12 @@ +import appdaemon.plugins.hass.hassapi as hass +# +# Hellow World App +# +# Args: +# + +class HelloWorld(hass.Hass): + + def initialize(self): + self.log("Hello from AppDaemon") + self.log("You are now ready to run Apps!") diff --git a/appdaemon/apps/helloworld.yaml b/appdaemon/apps/helloworld.yaml new file mode 100644 index 0000000..daff739 --- /dev/null +++ b/appdaemon/apps/helloworld.yaml @@ -0,0 +1,4 @@ +hello_world: + module: hello + class: HelloWorld +