Merge pull request #696 from MichaelDvP/dev

This commit is contained in:
Proddy
2022-10-18 10:09:48 +02:00
committed by GitHub

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;
}