Rewrite Govee filter
@@ -167,19 +167,10 @@ class BleParser:
elif man_spec_data[0] == 0x0A and complete_local_name == "sps": # Inkbird IBS-TH
sensor_data = parse_inkbird(self, man_spec_data, mac, rssi)
break
- elif man_spec_data[0] == 0x0C and comp_id == 0xEC88: # Govee H5051
+ elif man_spec_data[0] in [0x09, 0x0A, 0x0C] and comp_id == 0xEC88: # Govee H5051/H5072/H5075/H5074
sensor_data = parse_govee(self, man_spec_data, mac, rssi)
break
- elif man_spec_data[0] == 0x0A and comp_id == 0xEC88: # Govee H5051/H5074
- sensor_data = parse_govee(self, man_spec_data, mac, rssi)
- break
- elif man_spec_data[0] == 0x09 and comp_id == 0xEC88: # Govee H5072/H5075
- sensor_data = parse_govee(self, man_spec_data, mac, rssi)
- break
- elif man_spec_data[0] == 0x09 and comp_id == 0x0001: # Govee H5101/H5102/H5177
- sensor_data = parse_govee(self, man_spec_data, mac, rssi)
- break
- elif man_spec_data[0] == 0x0C and comp_id == 0x0001: # Govee H5178
+ elif man_spec_data[0] in [0x09, 0x0C] and comp_id == 0x0001: # Govee H5101/H5102/H5177
sensor_data = parse_govee(self, man_spec_data, mac, rssi)
break
elif man_spec_data[0] == 0x0C and comp_id == 0x8801: # Govee H5179
