From 0e312d2454124e767434cafda324cfbceb4d1ee0 Mon Sep 17 00:00:00 2001 From: ryanbooth Date: Wed, 30 Mar 2022 09:35:50 -0500 Subject: [PATCH] update System data_class to accept null user_config --- aos/devices.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aos/devices.py b/aos/devices.py index 8e1ee29..08577c6 100644 --- a/aos/devices.py +++ b/aos/devices.py @@ -62,7 +62,7 @@ def from_json(cls, d: Optional[dict]): facts=d["facts"], services=d.get("services", []), status=d["status"], - user_config=d["user_config"], + user_config=d.get("user_config", {}), ) diff --git a/setup.py b/setup.py index 56553ac..3d1600a 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ NAME = "aos-api-client" -VERSION = '0.1.15' +VERSION = '0.1.16' REQUIRES = (["requests==2.24.0"],)