diff --git a/puffb.py b/puffb.py index 0727dab..968fdb8 100644 --- a/puffb.py +++ b/puffb.py @@ -73,7 +73,7 @@ class Panel: # # Panel('https://panel.domain.com', 'randomClientId', 'randomSecretKey') - def invalidCode(self, given: object, override=False) -> bool: + def invalidCode(self, given: requests.Response, override=False) -> bool: validCodes = [] for i in range(200, 300): validCodes.append(i) @@ -398,6 +398,8 @@ class Panel: f"'{key}' does not match any in the options list:\n{options}" ) + reply[key]["value"] = value + response = requests.post( fullURL, data=json.dumps({"data": reply}), headers=data[1] )