Skip to content

Commit 09811d8

Browse files
committed
fixed boolean
1 parent 21e2e73 commit 09811d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appdaemon/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def register_service(
7474

7575
with self.services_lock:
7676
# first we confirm if the namespace exists
77-
if __name and self.AD.state.namespace_exists(namespace):
77+
if __name and not self.AD.state.namespace_exists(namespace):
7878
raise NamespaceException(f"Namespace {namespace}, doesn't exist")
7979

8080
elif not callable(callback):

0 commit comments

Comments
 (0)