Prepare for appdaemon
This commit is contained in:
parent
7a5308c502
commit
06e4fbcbdb
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,3 +3,7 @@
|
||||
!.gitignore
|
||||
!configuration.yaml
|
||||
!packages/
|
||||
**/__pycache__/
|
||||
!/appdaemon/
|
||||
/appdaemon/*
|
||||
!/appdaemon/apps
|
||||
|
12
appdaemon/apps/hello.py
Normal file
12
appdaemon/apps/hello.py
Normal file
@ -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!")
|
4
appdaemon/apps/helloworld.yaml
Normal file
4
appdaemon/apps/helloworld.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
hello_world:
|
||||
module: hello
|
||||
class: HelloWorld
|
||||
|
Loading…
x
Reference in New Issue
Block a user