We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d54992 commit 9d02198Copy full SHA for 9d02198
1 file changed
parchmint/device.py
@@ -865,11 +865,15 @@ def get_valve_type(value: str) -> ValveType:
865
device_ref.map_valve(
866
device_ref.get_component(componentid),
867
device_ref.get_connection(connectionid),
868
- get_valve_type(valve_type)
869
- if valve_type is not None
870
- else ValveType.NORMALLY_OPEN,
+ (
+ get_valve_type(valve_type)
+ if valve_type is not None
871
+ else ValveType.NORMALLY_OPEN
872
+ ),
873
)
874
if "controlportid" in valve_object:
- device_ref.set_valve_control_port(componentid, valve_object["controlportid"])
875
+ device_ref.set_valve_control_port(
876
+ componentid, valve_object["controlportid"]
877
+ )
878
- return device_ref
879
+ return device_ref
0 commit comments