Skip to content

Commit ea8cded

Browse files
authored
Merge pull request #251 from PedroKTFC/repair
Eliminate deprecated calls
2 parents 324070c + 7a70d83 commit ea8cded

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

components/tesla_ble_vehicle/tesla_ble_vehicle.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,9 +2116,7 @@ namespace esphome
21162116
auto *readChar = this->parent()->get_characteristic(this->service_uuid_, this->read_uuid_);
21172117
if (readChar == nullptr)
21182118
{
2119-
ESP_LOGW(TAG, "No write characteristic found at service %s read %s",
2120-
this->service_uuid_.to_string().c_str(),
2121-
this->read_uuid_.to_string().c_str());
2119+
ESP_LOGW(TAG, "No read characteristic found at service %s read %s", SERVICE_UUID, READ_UUID);
21222120
break;
21232121
}
21242122
this->read_handle_ = readChar->handle;
@@ -2133,9 +2131,7 @@ namespace esphome
21332131
auto *writeChar = this->parent()->get_characteristic(this->service_uuid_, this->write_uuid_);
21342132
if (writeChar == nullptr)
21352133
{
2136-
ESP_LOGW(TAG, "No write characteristic found at service %s write %s",
2137-
this->service_uuid_.to_string().c_str(),
2138-
this->write_uuid_.to_string().c_str());
2134+
ESP_LOGW(TAG, "No write characteristic found at service %s write %s", SERVICE_UUID, WRITE_UUID);
21392135
break;
21402136
}
21412137
this->write_handle_ = writeChar->handle;

0 commit comments

Comments
 (0)