mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 16:47:57 +01:00
fix: Setting Tuya string DP value (#2394)
This commit is contained in:
parent
95a6715b2b
commit
bdcffc7ba9
@ -479,7 +479,7 @@ void Tuya::set_string_datapoint_value(uint8_t datapoint_id, const std::string &v
|
||||
for (char const &c : value) {
|
||||
data.push_back(c);
|
||||
}
|
||||
this->send_datapoint_command_(datapoint->id, datapoint->type, data);
|
||||
this->send_datapoint_command_(datapoint_id, TuyaDatapointType::STRING, data);
|
||||
}
|
||||
|
||||
void Tuya::set_enum_datapoint_value(uint8_t datapoint_id, uint8_t value) {
|
||||
|
Loading…
Reference in New Issue
Block a user