mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-19 08:50:42 +08:00
fix: pylint warn
This commit is contained in:
parent
51ff17f1bf
commit
ee05222abc
@ -787,7 +787,8 @@ class MIoTSpecParser:
|
|||||||
urn_strs: list[str] = urn.split(':')
|
urn_strs: list[str] = urn.split(':')
|
||||||
urn_key: str = ':'.join(urn_strs[:6])
|
urn_key: str = ':'.join(urn_strs[:6])
|
||||||
# Modify the spec instance by custom spec
|
# Modify the spec instance by custom spec
|
||||||
instance = self._custom_service.modify_spec(urn_key=urn_key, spec=instance)
|
instance = self._custom_service.modify_spec(urn_key=urn_key,
|
||||||
|
spec=instance)
|
||||||
# Check required fields in the device instance
|
# Check required fields in the device instance
|
||||||
if (
|
if (
|
||||||
not isinstance(instance, dict)
|
not isinstance(instance, dict)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user