Skip to content

Commit 49530c5

Browse files
authored
feat: extend battery level reading to gcls002
feat: extend battery level reading to gcls002
1 parent 84d79b0 commit 49530c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xiaomi_ble/parser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ def poll_needed(
20002000
# kind of device we are
20012001
return False
20022002

2003-
if self.device_id != 0x0098:
2003+
if self.device_id not in [0x03BC, 0x0098]:
20042004
return False
20052005

20062006
return not last_poll or last_poll > TIMEOUT_1DAY
@@ -2009,7 +2009,7 @@ async def async_poll(self, ble_device: BLEDevice) -> SensorUpdate:
20092009
"""
20102010
Poll the device to retrieve any values we can't get from passive listening.
20112011
"""
2012-
if self.device_id == 0x0098:
2012+
if self.device_id in [0x03BC, 0x0098]:
20132013
client = await establish_connection(
20142014
BleakClient, ble_device, ble_device.address
20152015
)

0 commit comments

Comments
 (0)