diff --git a/selfdrive/car/hyundai/interface.py b/selfdrive/car/hyundai/interface.py index b72d308ec0..d9a19547e3 100644 --- a/selfdrive/car/hyundai/interface.py +++ b/selfdrive/car/hyundai/interface.py @@ -52,7 +52,6 @@ class CarInterface(CarInterfaceBase): if candidate in CANFD_CAR: if 0x105 in fingerprint[CAN.ECAN]: ret.flags |= HyundaiFlags.HYBRID.value - assert bool(ret.flags & HyundaiFlags.HYBRID) is (candidate in HYBRID_CAR) # detect HDA2 with ADAS Driving ECU if hda2: diff --git a/selfdrive/car/hyundai/tests/test_hyundai.py b/selfdrive/car/hyundai/tests/test_hyundai.py index 1715145fe3..5739b8147f 100755 --- a/selfdrive/car/hyundai/tests/test_hyundai.py +++ b/selfdrive/car/hyundai/tests/test_hyundai.py @@ -48,6 +48,9 @@ class TestHyundaiFingerprint(unittest.TestCase): for car_model in CANFD_CAR: self.assertNotIn(car_model, can_specific_feature_list, "CAN FD car unexpectedly found in a CAN feature list") + def test_hybrid_set(self): + self.assertEqual(CANFD_CAR & HYBRID_CAR, set(), "Hard coding CAN FD cars as hybrid is no longer supported") + def test_auxiliary_request_ecu_whitelist(self): # Asserts only auxiliary Ecus can exist in database for CAN-FD cars whitelisted_ecus = {ecu for r in FW_QUERY_CONFIG.requests for ecu in r.whitelist_ecus if r.auxiliary}