Skip to content

Commit

Permalink
audio: capitalize enums (#3067)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles authored Jan 3, 2025
1 parent cb6417b commit 6dab465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions archinstall/lib/models/audio_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


class Audio(Enum):
NoAudio = 'No audio server'
Pipewire = 'pipewire'
Pulseaudio = 'pulseaudio'
NO_AUDIO = 'No audio server'
PIPEWIRE = 'pipewire'
PULSEAUDIO = 'pulseaudio'


@dataclass
Expand All @@ -35,12 +35,12 @@ def install_audio_config(
info(f'Installing audio server: {self.audio.name}')

match self.audio:
case Audio.Pipewire:
case Audio.PIPEWIRE:
PipewireProfile().install(installation)
case Audio.Pulseaudio:
case Audio.PULSEAUDIO:
installation.add_additional_packages("pulseaudio")

if self.audio != Audio.NoAudio:
if self.audio != Audio.NO_AUDIO:
if SysInfo.requires_sof_fw():
installation.add_additional_packages('sof-firmware')

Expand Down
2 changes: 1 addition & 1 deletion tests/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_config_file_parsing(
),
bootloader=Bootloader.Systemd,
uki=False,
audio_config=AudioConfiguration(Audio.Pipewire),
audio_config=AudioConfiguration(Audio.PIPEWIRE),
hostname='archy',
kernels=['linux-zen'],
ntp=True,
Expand Down

0 comments on commit 6dab465

Please sign in to comment.