Mijia LYWSD02: Add support for LYWSD02MMC

This commit is contained in:
Davis Mosenkovs
2023-09-23 17:11:39 +03:00
parent 1cd795f95a
commit f4af55d622
@@ -40,7 +40,7 @@ public class MijiaLywsd02Coordinator extends AbstractBLEDeviceCoordinator {
@Override @Override
public DeviceType getSupportedType(GBDeviceCandidate candidate) { public DeviceType getSupportedType(GBDeviceCandidate candidate) {
String name = candidate.getName(); String name = candidate.getName();
if (name != null && name.equals("LYWSD02")) { if (name != null && (name.equals("LYWSD02") || name.equals("LYWSD02MMC"))) {
return DeviceType.MIJIA_LYWSD02; return DeviceType.MIJIA_LYWSD02;
} }
return DeviceType.UNKNOWN; return DeviceType.UNKNOWN;