Merge branch 'emsesp:dev' into dev

This commit is contained in:
pswid
2022-10-24 11:22:24 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -157,6 +157,14 @@ uint8_t EMSdevice::device_name_2_device_type(const char * topic) {
return DeviceType::ANALOGSENSOR;
}
if (!strcmp(lowtopic, F_(switch))) {
return DeviceType::SWITCH;
}
if (!strcmp(lowtopic, F_(gateway))) {
return DeviceType::GATEWAY;
}
return DeviceType::UNKNOWN;
}