Skip to content

Commit 0afa1a0

Browse files
authored
Merge pull request #2324 from AppDaemon/global-vars
instantiating Rlock correctly (missed commit)
2 parents deb9540 + f115ae5 commit 0afa1a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

appdaemon/appdaemon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from threading import RLock
77
from typing import TYPE_CHECKING, Optional
88

9-
from pydantic import Field
109

1110
from appdaemon.admin_loop import AdminLoop
1211
from appdaemon.app_management import AppManagement
@@ -112,7 +111,7 @@ class AppDaemon(metaclass=Singleton):
112111

113112
admin_loop: AdminLoop | None = None
114113
http: Optional["HTTP"] = None
115-
global_lock: RLock = Field(default_factory=RLock)
114+
global_lock: RLock = RLock()
116115

117116
# shut down flag
118117
stopping: bool = False

0 commit comments

Comments
 (0)