Rename __json__() to asdict()

This commit is contained in:
grossmj
2021-04-17 23:34:28 +09:30
parent 44074ff7c9
commit cefab8d362
89 changed files with 286 additions and 282 deletions

View File

@ -52,7 +52,7 @@ class ATMSwitch(Device):
if mappings:
self._mappings = mappings
def __json__(self):
def asdict(self):
mappings = {}
for source, destination in self._mappings.items():