use hierarchical property layers to make config changes effective
immediately
This commit is contained in:
9
owrx/jsons.py
Normal file
9
owrx/jsons.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from owrx.property import PropertyManager
|
||||
import json
|
||||
|
||||
|
||||
class Encoder(json.JSONEncoder):
|
||||
def default(self, o):
|
||||
if isinstance(o, PropertyManager):
|
||||
return o.__dict__()
|
||||
return super().default(o)
|
||||
Reference in New Issue
Block a user