Skip to content

Commit 115bcf9

Browse files
committed
scheduler: fix pin NameError
1 parent beaa161 commit 115bcf9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appdaemon/scheduler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ async def insert_schedule(
172172
# Otherwise, use the current pin_app setting in app management
173173
if pin is None:
174174
pin_app = self.AD.app_management.objects[name].pin_app
175+
else:
176+
pin_app = pin
175177

176178
if pin_thread is None:
177179
pin_thread = self.AD.app_management.objects[name].pin_thread

0 commit comments

Comments
 (0)