Skip to content

Commit

Permalink
Merge pull request #27 from jasonmadigan/panel-status-bug
Browse files Browse the repository at this point in the history
bugfix: 400 on panel status
  • Loading branch information
jasonmadigan authored Jul 26, 2024
2 parents 054ac80 + 1799917 commit c9de5e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/hkc_alarm/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, data, device_info, coordinator):
@property
def unique_id(self):
"""Return the unique ID of the sensor."""
return self._hkc_alarm.panel_id + "panel"
return str(self._hkc_alarm.panel_id) + "panel"

@property
def extra_state_attributes(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hkc_alarm/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@jasonmadigan"
],
"requirements": [
"pyhkc==0.4.8"
"pyhkc==0.4.9"
],
"config_flow": true,
"iot_class": "cloud_polling"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hkc_alarm/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def extra_state_attributes(self):
@property
def unique_id(self):
"""Return the unique ID of the sensor."""
return self._hkc_alarm.panel_id + str(self._input_data["inputId"])
return str(self._hkc_alarm.panel_id) + str(self._input_data["inputId"])

@property
def device_info(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ homeassistant==2024.6.4
pytest
pytest-homeassistant-custom-component==0.13.136
pytest-aiohttp
pyhkc==0.4.8
pyhkc==0.4.9

0 comments on commit c9de5e0

Please sign in to comment.