From 36c506a729443b1fac0bee1295044b77a1efad49 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Fri, 26 Jul 2024 16:35:11 +0100 Subject: [PATCH] bugfix: 400 on panel status --- pyhkc/hkc_api.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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, */*", diff --git a/setup.py b/setup.py index 6fd7c5c..b6e60c8 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='pyhkc', - version='0.4.8', + version='0.4.9', packages=find_packages(), install_requires=open(os.path.join(BASE_DIR, 'requirements.txt')).readlines(), author='Jason Madigan',