fix(ups-hid): handle wonky esp32-idf disconnect/reconnect issues with v5.3

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-18 14:53:45 +02:00
1 parent bbacfcb5c8
commit 0c1e24b525
5 files changed
+179 -9

No files matched your search

+9
View File
@@ -225,6 +225,15 @@ namespace esphome
return false;
#endif
}
// Connection status for protocols
bool is_device_connected() const {
#ifdef USE_ESP32
return device_connected_;
#else
return false;
#endif
}
// Sensor registration methods
void register_sensor(sensor::Sensor *sens, const std::string &type);