Skip to content

Commit c5cc0f2

Browse files
authored
Add the source field to MiotProperty (#2037)
Some devices, like xiaomi.fan.p76, expose such a field.
1 parent 0aa4df3 commit c5cc0f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

miio/miot_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ class MiotProperty(MiotBaseModel):
228228
choices: Optional[list[MiotEnumValue]] = Field(alias="value-list")
229229
gatt_access: Optional[list[Any]] = Field(alias="gatt-access")
230230

231+
source: Optional[int] = None
232+
231233
# TODO: currently just used to pass the data for miiocli
232234
# there must be a better way to do this..
233235
value: Optional[Any] = None

0 commit comments

Comments
 (0)