From 7682a56c51895cc0408feb9c8eca512994f78b80 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Thu, 28 Aug 2025 08:44:48 -0500 Subject: [PATCH] clarify wording in the volume warning --- adafruit_fruitjam/peripherals.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/adafruit_fruitjam/peripherals.py b/adafruit_fruitjam/peripherals.py index 5e3a0b7..35e03c5 100644 --- a/adafruit_fruitjam/peripherals.py +++ b/adafruit_fruitjam/peripherals.py @@ -279,10 +279,9 @@ class Peripherals: if volume_level > self.safe_volume_limit: raise ValueError( f"""Volume level must be less than or equal to -safe_volume_limit: {self.safe_volume_limit}. -Using higher values could damage speakers. -To override this limitation pass a value larger {self.safe_volume_limit} -for the safe_volume_limit argument of the constructor.""" +safe_volume_limit: {self.safe_volume_limit}. Using higher values could damage speakers. +To override this limitation set a larger value than {self.safe_volume_limit} +for the safe_volume_limit with the constructor or property.""" ) self._volume = volume_level