Add tags= keywords to all create functions, with unit tests. Resolves #2160

This commit is contained in:
Griatch 2020-07-18 21:36:03 +02:00
parent e7b91e11e7
commit e5b96a2b79
3 changed files with 108 additions and 6 deletions

View file

@ -51,6 +51,8 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
self.attributes.add("keep_log", cdict["keep_log"])
if cdict.get("desc"):
self.attributes.add("desc", cdict["desc"])
if cdict.get("tags"):
self.tags.batch_add(*cdict["tags"])
def basetype_setup(self):
# delayed import of the channelhandler