mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[P132] Fix MQTT Discovery for Power setting
This commit is contained in:
@@ -8,7 +8,7 @@ int Plugin_132_QueryVType(uint8_t value_nr) {
|
||||
const bool odd = value_nr % 2;
|
||||
return static_cast<int>(odd ? Sensor_VType::SENSOR_TYPE_CURRENT_ONLY : Sensor_VType::SENSOR_TYPE_VOLTAGE_ONLY);
|
||||
}
|
||||
return static_cast<int>(Sensor_VType::SENSOR_TYPE_NONE);
|
||||
return static_cast<int>(Sensor_VType::SENSOR_TYPE_POWER_USG_ONLY);
|
||||
}
|
||||
|
||||
# endif // if FEATURE_MQTT_DISCOVER
|
||||
|
||||
Reference in New Issue
Block a user