Skip to content

Commit

Permalink
Fix device discovery when a device has more than 2 identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
tanelvakker committed Nov 13, 2024
1 parent 5de4fe6 commit 7db543a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/qilowatt/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def _discover_inverters(self):

for device in device_registry.devices.values():
for identifier in device.identifiers:
domain, device_id = identifier
domain, device_id, *_ = identifier
if domain == "mqtt":
# Solar Assistant inverter
if "sa_inverter" in device_id:
Expand Down

0 comments on commit 7db543a

Please sign in to comment.