first working tests
This commit is contained in:
@@ -2,4 +2,4 @@ from .eggs import Eggs
|
||||
from .ham import Ham
|
||||
from .spam import Spam
|
||||
|
||||
__all__ = ['Eggs', 'Ham', 'Spam']
|
||||
__all__ = ["Eggs", "Ham", "Spam"]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
|
||||
class Eggs(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'{self.__class__.__name__} Initialized')
|
||||
self.log(f"{self.__class__.__name__} Initialized")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
|
||||
class Ham(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'{self.__class__.__name__} Initialized')
|
||||
self.log(f"{self.__class__.__name__} Initialized")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
|
||||
class Spam(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'{self.__class__.__name__} Initialized')
|
||||
self.log(f"{self.__class__.__name__} Initialized")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
|
||||
class HelloWorld(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'{self.__class__.__name__} Initialized')
|
||||
self.log(f"{self.__class__.__name__} Initialized")
|
||||
|
||||
@@ -7,4 +7,5 @@ class Restaurant(ADAPI):
|
||||
def initialize(self):
|
||||
meal = Meal()
|
||||
eggs: Eggs = meal.dishes[0]
|
||||
self.log(f'{self.__class__.__name__} initialized with {eggs}')
|
||||
self.log(f"{self.__class__.__name__} initialized with {eggs}")
|
||||
self.log(f"Last dish: {meal.dishes[-1]}")
|
||||
|
||||
Reference in New Issue
Block a user