diff --git a/custom_components/xiaomi_home/miot/miot_spec.py b/custom_components/xiaomi_home/miot/miot_spec.py index 1980cc47..15b6bfe3 100644 --- a/custom_components/xiaomi_home/miot/miot_spec.py +++ b/custom_components/xiaomi_home/miot/miot_spec.py @@ -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)