Skip to content

Commit 5cf83f7

Browse files
committed
Remove unused _to_command_definitions function
Definition.commands uses an inline lambda converter instead. This function was defined but never referenced anywhere.
1 parent 8f2ce0c commit 5cf83f7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pyoverkiz/models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ def _to_states(value: list[dict[str, Any]] | States | None) -> States:
209209
return States(value)
210210

211211

212-
def _to_command_definitions(value: Any) -> Any:
213-
"""Converter: raw list -> CommandDefinitions, or passthrough."""
214-
if isinstance(value, list):
215-
return _resolve("CommandDefinitions")(value)
216-
return value
217-
218-
219212
@_flexible_init
220213
@define(kw_only=True)
221214
class Device:

0 commit comments

Comments
 (0)