mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
fix: Setting Tuya string DP value (#2394)
This commit is contained in:
parent
95a6715b2b
commit
bdcffc7ba9
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ void Tuya::set_string_datapoint_value(uint8_t datapoint_id, const std::string &v
|
||||||
for (char const &c : value) {
|
for (char const &c : value) {
|
||||||
data.push_back(c);
|
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) {
|
void Tuya::set_enum_datapoint_value(uint8_t datapoint_id, uint8_t value) {
|
||||||
|
|
Loading…
Reference in a new issue