Skip to content

Commit ac9a218

Browse files
committed
Added detection of EVL4 UNO STANDALONE devices
1 parent a2cad4a commit ac9a218

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

custom_components/envisalink_new/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"dependencies": [],
1212
"codeowners": ["@ufodone"],
1313
"iot_class": "local_push",
14-
"version": "0.9.4"
14+
"version": "0.9.5"
1515
}

custom_components/envisalink_new/pyenvisalink/alarm_panel.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,12 @@ async def discover_device_details(self) -> bool:
418418
panel_regex = ">Security Subsystem - ([^<]*)<"
419419
m = re.search(panel_regex, html)
420420
if m and m.lastindex == 1:
421-
self._panelType = m.group(1).upper()
421+
panelType = m.group(1).upper()
422+
# Handle the UNO STANDALONE variant
423+
if PANEL_TYPE_UNO in panelType:
424+
self._panelType = PANEL_TYPE_UNO
425+
else:
426+
self._panelType = panelType
422427
else:
423428
success = False
424429

0 commit comments

Comments
 (0)