Skip to content

Commit c9de5e0

Browse files
authored
Merge pull request #27 from jasonmadigan/panel-status-bug
bugfix: 400 on panel status
2 parents 054ac80 + 1799917 commit c9de5e0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

custom_components/hkc_alarm/alarm_control_panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, data, device_info, coordinator):
4242
@property
4343
def unique_id(self):
4444
"""Return the unique ID of the sensor."""
45-
return self._hkc_alarm.panel_id + "panel"
45+
return str(self._hkc_alarm.panel_id) + "panel"
4646

4747
@property
4848
def extra_state_attributes(self):

custom_components/hkc_alarm/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@jasonmadigan"
1010
],
1111
"requirements": [
12-
"pyhkc==0.4.8"
12+
"pyhkc==0.4.9"
1313
],
1414
"config_flow": true,
1515
"iot_class": "cloud_polling"

custom_components/hkc_alarm/sensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def extra_state_attributes(self):
3939
@property
4040
def unique_id(self):
4141
"""Return the unique ID of the sensor."""
42-
return self._hkc_alarm.panel_id + str(self._input_data["inputId"])
42+
return str(self._hkc_alarm.panel_id) + str(self._input_data["inputId"])
4343

4444
@property
4545
def device_info(self):

requirements_dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ homeassistant==2024.6.4
33
pytest
44
pytest-homeassistant-custom-component==0.13.136
55
pytest-aiohttp
6-
pyhkc==0.4.8
6+
pyhkc==0.4.9

0 commit comments

Comments
 (0)