Skip to content

Commit

Permalink
fix: xobj method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kvakulo committed May 5, 2024
1 parent 3650fdd commit 58242e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xiaomi_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,9 @@ def obj4805(
return {}


def obj4806(xobj):
def obj4806(
xobj: bytes, device: XiaomiBluetoothDeviceData, device_type: str
) -> dict[str, Any]:
"""Moisture"""
device.update_predefined_binary_sensor(
BinarySensorDeviceClass.MOISTURE, xobj[0] > 0
Expand Down

0 comments on commit 58242e3

Please sign in to comment.