Skip to content

Commit 7ef4a1a

Browse files
committed
Add work-around for Stretch with fw 2.7.18
Domain_objects is empty
1 parent d91f6d5 commit 7ef4a1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugwise/smile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ async def connect(self):
315315
dsmrmain = result.find(".//module/protocols/dsmrmain")
316316

317317
vendor_names = result.findall(".//module/vendor_name")
318+
if not vendor_names:
319+
# Work-around for Stretch fv 2.7.18
320+
result = await self._request(MODULES)
321+
vendor_names = result.findall(".//module/vendor_name")
322+
318323
for name in vendor_names:
319324
names.append(name.text)
320325

0 commit comments

Comments
 (0)