Skip to content

Commit

Permalink
Fix usage of SignalRW.read_widget
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 authored and GDYendell committed Feb 20, 2024
1 parent 75e415d commit 2acbca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pvi/_format/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def generate_component_formatters(
for action, value in c.write_widget.actions.items()
]
# If this is a SignalRW, recreate the readback with a SignalR
if isinstance(c, SignalRW):
if isinstance(c, SignalRW) and c.read_widget is not None:
row_components += [
SignalR(name=c.name, read_pv=c.read_pv, read_widget=c.read_widget)
]
Expand Down

0 comments on commit 2acbca2

Please sign in to comment.