Merge remote-tracking branch 'foamyguy/volume_api' into volume_api
This commit is contained in:
commit
6f0204bf34
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ class Peripherals:
|
|||
:param volume_level: new volume level 1-20
|
||||
:return: None
|
||||
"""
|
||||
if volume_level < 1 or volume_level > 20:
|
||||
if not (1 <= volume_level <= 20):
|
||||
raise ValueError("Volume level must be between 1 and 20")
|
||||
|
||||
if volume_level > self.safe_volume_limit:
|
||||
|
|
|
|||
Loading…
Reference in a new issue