to_component#
- to_component(string)[source]#
Convert the input string to a
DeviceComponent
instance.- Parameters:
string (str) â String to be converted.
- Returns:
A
DeviceComponent
instance.- Raises:
ValueError â If input string is not a valid device component.
- Return type: