@@ -362,7 +362,8 @@ def _get_current_esc_to_fc_dict(self) -> "EscToFcTelemetryDict":
362362 return {}
363363
364364 def get_valid_esc_telemetry_types (self ) -> tuple [str , ...]:
365- """Return valid ESC->FC Telemetry Type values for the current FC->ESC connection protocol.
365+ """
366+ Return valid ESC->FC Telemetry Type values for the current FC->ESC connection protocol.
366367
367368 Uses the ESC_CONNECTION_DICT directly (via _get_current_esc_to_fc_dict) so it does not
368369 depend on _mot_pwm_types being populated from a doc file. This makes it safe to call from
@@ -382,7 +383,8 @@ def get_valid_esc_telemetry_types(self) -> tuple[str, ...]:
382383 return tuple (valid ) if valid else ("None" ,)
383384
384385 def is_esc_telemetry_type_mirrored (self ) -> bool :
385- """Return True when the ESC->FC Telemetry Type combobox should be greyed-out.
386+ """
387+ Return True when the ESC->FC Telemetry Type combobox should be greyed-out.
386388
387389 True ONLY when the ESC_to_FC dict has EXACTLY ONE key: ("same_as_FC_to_ESC",).
388390 This covers fully-mirrored entries like ESC_TO_FC_TELEMETRY_SAME (CAN/DroneCAN and
@@ -396,7 +398,8 @@ def is_esc_telemetry_type_mirrored(self) -> bool:
396398 return esc_to_fc_dict == {("same_as_FC_to_ESC" ,): esc_to_fc_dict .get (("same_as_FC_to_ESC" ,))}
397399
398400 def is_esc_telemetry_protocol_mirrored (self ) -> bool :
399- """Return True when the ESC->FC Telemetry Protocol combobox should be greyed-out.
401+ """
402+ Return True when the ESC->FC Telemetry Protocol combobox should be greyed-out.
400403
401404 True when the matching ESC_CONNECTION_DICT entry has "same_as_FC_to_ESC" as a value,
402405 meaning the telemetry protocol is forced to match the FC->ESC protocol exactly.
@@ -557,7 +560,7 @@ def _compute_telem_serial_protocols(
557560 # PWM / None: restrict to protocols supported by the currently selected FC->ESC Protocol.
558561 fc_esc_protocol = str (self .get_component_value (("ESC" , "FC->ESC Connection" , "Protocol" )) or "" )
559562 # Find the ESC_to_FC dict for the current protocol entry.
560- esc_to_fc : " EscToFcTelemetryDict" = {("None" ,): "None" }
563+ esc_to_fc : EscToFcTelemetryDict = {("None" ,): "None" }
561564 for entry in esc_sub .values ():
562565 if entry .get ("protocol" ) == fc_esc_protocol :
563566 raw = entry .get ("ESC_to_FC" , {("None" ,): "None" })
0 commit comments