fix(cp-hid): based on nut reference

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-07 11:48:57 +02:00
1 parent 9a2023e894
commit 5a74706bf8
2 files changed
+92 -25

No files matched your search

+4
View File
@@ -145,6 +145,10 @@ namespace esphome
const UpsData &get_ups_data() const { return ups_data_; }
bool is_connected() const { return connected_; }
std::string get_protocol_name() const;
// USB device info getters
uint16_t get_usb_vendor_id() const { return usb_vendor_id_; }
uint16_t get_usb_product_id() const { return usb_product_id_; }
// Sensor registration methods
void register_sensor(sensor::Sensor *sens, const std::string &type);