From 999c54c14949ce8d51b571602fc4f11cd87fd227 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 2 Apr 2026 00:06:14 -0400 Subject: [PATCH] new list --- .../ui/sunnypilot/layouts/settings/vehicle/brands/hyundai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/sunnypilot/layouts/settings/vehicle/brands/hyundai.py b/selfdrive/ui/sunnypilot/layouts/settings/vehicle/brands/hyundai.py index 351dacbbc2..20c9903a63 100644 --- a/selfdrive/ui/sunnypilot/layouts/settings/vehicle/brands/hyundai.py +++ b/selfdrive/ui/sunnypilot/layouts/settings/vehicle/brands/hyundai.py @@ -8,7 +8,7 @@ from openpilot.selfdrive.ui.sunnypilot.layouts.settings.vehicle.brands.base impo from openpilot.selfdrive.ui.ui_state import ui_state from openpilot.system.ui.lib.multilang import tr from openpilot.system.ui.sunnypilot.widgets.list_view import multiple_button_item_sp -from opendbc.car.hyundai.values import CAR, CANFD_UNSUPPORTED_LONGITUDINAL_CAR, UNSUPPORTED_LONGITUDINAL_CAR +from opendbc.car.hyundai.values import CAR, UNSUPPORTED_LONGITUDINAL_CAR class HyundaiSettings(BrandSettings): @@ -31,7 +31,7 @@ class HyundaiSettings(BrandSettings): bundle = ui_state.params.get("CarPlatformBundle") if bundle: platform = bundle.get("platform") - self.alpha_long_available = CAR[platform] not in (UNSUPPORTED_LONGITUDINAL_CAR | CANFD_UNSUPPORTED_LONGITUDINAL_CAR) + self.alpha_long_available = CAR[platform] not in set().union(*UNSUPPORTED_LONGITUDINAL_CAR.values()) elif ui_state.CP is not None: self.alpha_long_available = ui_state.CP.alphaLongitudinalAvailable