mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Fix compile warning in Tuya automations (#2837)
This commit is contained in:
parent
08cbb97ec9
commit
cbc1334b8d
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ namespace tuya {
|
|||
|
||||
void check_expected_datapoint(const TuyaDatapoint &dp, TuyaDatapointType expected) {
|
||||
if (dp.type != expected) {
|
||||
ESP_LOGW(TAG, "Tuya sensor %u expected datapoint type %#02hhX but got %#02hhX", dp.id, expected, dp.type);
|
||||
ESP_LOGW(TAG, "Tuya sensor %u expected datapoint type %#02hhX but got %#02hhX", dp.id,
|
||||
static_cast<uint8_t>(expected), static_cast<uint8_t>(dp.type));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue