diff --git a/pyhkc/hkc_api.py b/pyhkc/hkc_api.py index 9c402e7..1471028 100644 --- a/pyhkc/hkc_api.py +++ b/pyhkc/hkc_api.py @@ -7,9 +7,9 @@ class HKCAlarm: def __init__(self, panel_id, panel_password, user_code, base_url="https://hkc.api.securecomm.cloud", log_level=logging.INFO): self.base_url = base_url - self.panel_id = panel_id + self.panel_id = int(panel_id) self.panel_password = panel_password - self.user_code = user_code + self.user_code = int(user_code) self.headers = { "Host": "hkc.api.securecomm.cloud", "accept": "application/json, text/plain, */*",