Great catch Frank! I gave it a quick test and it seems to work as expected. Here are the updated functions:
def getTagConfigStr(tagPath):
return system.tag.exportTags(tagPaths = [tagPath])
def getTagConfigObj(tagPath):
return system.util.jsonDecode(getTagConfigStr(tagPath))
1 Like
Thanks for this. I never would've guessed removing the path property would be CRITICAL for my use-case: removing overridden .enabled alarm properties.
If I don't remove it, UDT-inherited alarm .enable properties are overridden to False, though my config purposefully excludes that property (so that they will revert to Inherited)...
1 Like
I'm glad my hours of painful development were able to save some for you! It makes sense that the path tag property should be read-only, but the fact that you can write to it is kind of obnoxious; the strange side-effects caused by writing to it even moreso.
1 Like