Skip to content

Commit fda76b4

Browse files
committed
chore: simplify supported_schema_codes
1 parent 88f0ef9 commit fda76b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/data/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def supported_schema_codes(self) -> set[str]:
237237
"""Return a set of fields that are supported by the device."""
238238
if self.schema is None:
239239
return set()
240-
return set({schema.code for schema in self.schema if schema.code is not None})
240+
return {schema.code for schema in self.schema if schema.code is not None}
241241

242242

243243
@dataclass

0 commit comments

Comments
 (0)