diff --git a/clearpath_config/platform/platform.py b/clearpath_config/platform/platform.py index 074a33e..1024a6f 100644 --- a/clearpath_config/platform/platform.py +++ b/clearpath_config/platform/platform.py @@ -87,7 +87,15 @@ class PlatformConfig(BaseConfig): # Controllers PS4 = 'ps4' + PS5 = 'ps5' LOGITECH = 'logitech' + XBOX = 'xbox' + CONTROLLERS = [ + PS4, + PS5, + LOGITECH, + XBOX + ] CONTROLLER = 'controller' ATTACHMENTS = 'attachments' @@ -217,7 +225,7 @@ def controller(self) -> str: @controller.setter def controller(self, value: str) -> None: - assert value.lower() in [self.PS4, self.LOGITECH], f'"{value.lower()}" controller is invalid. Must be one of "{[self.PS4, self.LOGITECH]}"' # noqa:501 + assert value.lower() in self.CONTROLLERS, f'"{value.lower()}" controller is invalid. Must be one of "{self.CONTROLLERS}"' # noqa:501 self._controller = value.lower() @property