This is a fix for the 19.07 releases and TP-Link devices. Those are in both ar71xx and ath79, but with a different vendor letter case.
Make the vendor equal so the code recognizes it and appends the target as extra differentiator.
)
continue
+ """
+ Some devices are in ar71xx and ath79. But use TP-LINK" and "TP-Link".
+ E.g: `TP-LINK Archer C7 v5` and `TP-Link Archer C7 v5`
+ To be able to detect this, we need to make "same" titles identical.
+ """
+ if title.startswith("TP-LINK "):
+ title = "TP-Link {}".format(title[8:])
+
# device is a duplicate, try to differentiate by target
if title in output["models"]:
title = "{} ({})".format(title, target)