mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-06-21 10:23:57 +08:00
feat: modify MIoT-Spec-V2 property format (#1111)
This commit is contained in:
@ -646,7 +646,8 @@ class MIoTClient:
|
||||
result = await self._miot_lan.set_prop_async(
|
||||
did=did, siid=siid, piid=piid, value=value)
|
||||
_LOGGER.debug(
|
||||
'lan set prop, %s, %s, %s -> %s', did, siid, piid, result)
|
||||
'lan set prop, %s.%d.%d, %s -> %s',
|
||||
did, siid, piid, value, result)
|
||||
rc = (result or {}).get(
|
||||
'code', MIoTErrorCode.CODE_MIPS_INVALID_RESULT.value)
|
||||
if rc in [0, 1]:
|
||||
|
Reference in New Issue
Block a user