From 8a301fa02f2808554d3412dad321b87180d4bc68 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:09:54 -0600 Subject: [PATCH] Restore wheel personality callbacks and repair Developer tests --- openpilot/starpilot/galaxy/tests/test_device_settings.py | 4 ++-- openpilot/starpilot/ui/runtime_app.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/galaxy/tests/test_device_settings.py b/openpilot/starpilot/galaxy/tests/test_device_settings.py index 122263f79c..74481e2520 100644 --- a/openpilot/starpilot/galaxy/tests/test_device_settings.py +++ b/openpilot/starpilot/galaxy/tests/test_device_settings.py @@ -233,7 +233,7 @@ class DeviceSettingsTest(unittest.TestCase): intent = gateway.preview(page["view"], index, 0, token, generation, reset_default=True)["intent"] self.assertTrue(gateway.confirm(intent, token, generation)) self.assertEqual(Path(self.params.get_param_path(key)).read_bytes(), b"0") - self.assertEqual(gateway.page("developer", token, generation)["rows"][2]["label"], "Speed display adjustment") + self.assertEqual([row["label"] for row in gateway.page("developer", token, generation)["rows"]].count("Speed display adjustment"), 1) def test_starport_stay_on_wifi_toggle(self): self.assertNotIn(STARPORT_WIFI_KEY, [row.key for row in self.owner.snapshot("starport_options").rows]) @@ -452,7 +452,7 @@ class CalibrationResetSettingsTest(unittest.TestCase): context.value = replace(context.value, parked=True) pending = preview() self.assertTrue(gateway.confirm(pending["intent"], "session", b"generation")) - self.assertIsNone(self.params.get("IsRhdDetected")) + self.assertFalse(Path(self.params.get_param_path("IsRhdDetected")).exists()) self.assertTrue(self.params.get_bool("OnroadCycleRequested")) def test_calibration_reset_gateway_requires_confirmation_and_fresh_parked_state(self): diff --git a/openpilot/starpilot/ui/runtime_app.py b/openpilot/starpilot/ui/runtime_app.py index 745159a45b..03222eeebe 100644 --- a/openpilot/starpilot/ui/runtime_app.py +++ b/openpilot/starpilot/ui/runtime_app.py @@ -588,6 +588,7 @@ class StarShellSession: continue try: if command.action == 1: + self._native_favorite_actions() if self._wheel_personality is not None: self._wheel_personality() elif command.action in (5, 7, 8):