feat: add support for broader range of fitpro devices

This commit is contained in:
Daniel Giritzer
2025-09-14 15:46:52 +02:00
committed by José Rebelo
parent 6ead1e3b03
commit 6222fe9538
2 changed files with 8 additions and 1 deletions
@@ -57,7 +57,7 @@ public class FitProDeviceCoordinator extends AbstractBLEDeviceCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("M6.*|M4.*|LH716|Sunset 6|Watch7|Fit1900");
return Pattern.compile("^(M6.*|M4.*|LH716|Sunset 6|Watch7|Fit1900|716)$");
}
@Override
@@ -129,6 +129,13 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
put("Galaxy Buds Pro (B352)", DeviceType.GALAXY_BUDS_PRO); // #2642
put("Redmi Watch 2 Lite 31A5", DeviceType.REDMIWATCH2LITE); // #2637
put("HUAWEI Band 6-A47", DeviceType.HUAWEIBAND6); // #2569
put("716", DeviceType.FITPRO);
put("LH716", DeviceType.FITPRO);
put("Sunset 6", DeviceType.FITPRO);
put("Watch7", DeviceType.FITPRO);
put("Fit1900", DeviceType.FITPRO);
put("M6-4711", DeviceType.FITPRO);
put("M4-4711", DeviceType.FITPRO);
}};
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {