Add cmd_set on load

This commit is contained in:
ChrisLR 2024-01-02 10:25:17 -05:00
parent 217bd711e7
commit 74f8715d5a

View file

@ -106,8 +106,11 @@ class Component(metaclass=BaseComponent):
Component: The loaded instance of the component
"""
inst = cls(host)
if inst.cmd_set:
host.cmdset.add(inst.cmd_set)
return cls(host)
return inst
def at_added(self, host):
"""