foo, bar, baz rename
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
print(f' Importing {__name__} '.center(50, '+'))
|
||||
|
||||
from .bar import Bar
|
||||
|
||||
print(f' Done {__name__} '.center(50, '='))
|
||||
12
apps/my_repo/my_pkg/my_sub_pkg/bar.py
Normal file
12
apps/my_repo/my_pkg/my_sub_pkg/bar.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from appdaemon.adbase import ADBase
|
||||
|
||||
filename = Path(__file__).name
|
||||
print(f' Importing {filename} '.center(50, '-'))
|
||||
|
||||
class Bar(ADBase):
|
||||
def initialize(self):
|
||||
self.adapi = self.get_ad_api()
|
||||
self.adapi.log(f'Initialized app from {__file__}')
|
||||
# self.adapi.log(f'CHANGED')
|
||||
12
apps/my_repo/my_pkg/my_sub_pkg/baz.py
Normal file
12
apps/my_repo/my_pkg/my_sub_pkg/baz.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from appdaemon.adbase import ADBase
|
||||
|
||||
filename = Path(__file__).name
|
||||
print(f' Importing {filename} '.center(50, '-'))
|
||||
|
||||
class Baz(ADBase):
|
||||
def initialize(self):
|
||||
self.adapi = self.get_ad_api()
|
||||
self.adapi.log(f'Initialized app from {__file__}')
|
||||
# self.adapi.log(f'CHANGED')
|
||||
@@ -1,8 +0,0 @@
|
||||
import appdaemon.adbase as ad
|
||||
|
||||
class HelloWorldSub(ad.ADBase):
|
||||
def initialize(self):
|
||||
self.adapi = self.get_ad_api()
|
||||
self.log = self.adapi.log
|
||||
self.log(f'Initialized app from {__file__}')
|
||||
# self.log(f'CHANGED')
|
||||
Reference in New Issue
Block a user