Skip to content

Commit 4c4f8c8

Browse files
authored
Merge pull request #703 from google/gbg/hotfix
hotfix
2 parents b8a055d + a00b2bd commit 4c4f8c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bumble/a2dp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,10 @@ class SamplingFrequency(enum.IntFlag):
480480
SF_48000 = 1 << 0
481481

482482
@classmethod
483-
def from_int(
484-
cls, sampling_frequency: int
485-
) -> OpusMediaCodecInformation.SamplingFrequency:
483+
def from_int(cls, sampling_frequency: int) -> Self:
486484
if sampling_frequency != 48000:
487485
raise ValueError("no such sampling frequency")
488-
return cls.SF_48000
486+
return cls(1)
489487

490488
VENDOR_ID: ClassVar[int] = 0x000000E0
491489
CODEC_ID: ClassVar[int] = 0x0001

0 commit comments

Comments
 (0)