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