We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a909b63 commit 63397afCopy full SHA for 63397af
addons/source-python/packages/source-python/entities/hooks.py
@@ -102,15 +102,15 @@ def __call__(self, callback):
102
for entity in EntityIter():
103
if self.initialize(entity):
104
# Yay! The entity was the one we were looking for
105
- return self
+ return self.callback
106
107
# Initialization failed. There is currently no entity with the given
108
# class name. So, we need to wait until such an entity has been
109
# created.
110
_waiting_entity_hooks.append(self)
111
112
# Return the callback
113
114
115
@property
116
def hook_type(self):
0 commit comments