added device type detection to config_flow

This commit is contained in:
Patrick762 committed 2024-02-18 16:37:37 +01:00
1 parent 9b7fd82591
commit a50deaae37
4 files changed
+74 -18

No files matched your search

@@ -12,7 +12,7 @@ class ProtocolV2Device(BluettiDevice):
self.struct = DeviceStruct()
# Device info
self.struct.add_string_field("device_type", 110, 6)
self.struct.add_swap_string_field("device_type", 110, 6)
self.struct.add_sn_field("serial_number", 116)
# Power IO