Skip to content

Commit

Permalink
fix: pylint warn
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanPhevos committed Dec 25, 2024
1 parent 51ff17f commit ee05222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_home/miot/miot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,8 @@ async def __parse(self, urn: str) -> MIoTSpecInstance:
urn_strs: list[str] = urn.split(':')
urn_key: str = ':'.join(urn_strs[:6])
# 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
if (
not isinstance(instance, dict)
Expand Down

0 comments on commit ee05222

Please sign in to comment.