From c0c1197beeb48086b741d05ca5458d0700ba7207 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Fri, 29 Mar 2024 10:38:16 -0700 Subject: [PATCH] Fix mute switch setup --- neon_phal_plugin_switches/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neon_phal_plugin_switches/__init__.py b/neon_phal_plugin_switches/__init__.py index 1190f5d..7b1e934 100644 --- a/neon_phal_plugin_switches/__init__.py +++ b/neon_phal_plugin_switches/__init__.py @@ -148,7 +148,8 @@ def setup_gpio(self, pull_up: bool = True): hold_time=0.5).when_activated = self.on_vol_down mute_active = True if bool(self._muted) == pull_up else False - self.mute_switch = Button(self.mute_pin, active_state=mute_active) + self.mute_switch = Button(self.mute_pin, pull_up=None, + active_state=mute_active) self.mute_switch.when_deactivated = self.on_unmute self.mute_switch.when_activated = self.on_mute