From 4846608b4bda344191754c53f3424b5037aefd5c Mon Sep 17 00:00:00 2001 From: CPD Date: Thu, 27 Feb 2025 16:42:47 +0100 Subject: [PATCH] Fix self --- cpdctrl/led_control_device/base.py | 2 +- cpdctrl/led_control_device/impl/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpdctrl/led_control_device/base.py b/cpdctrl/led_control_device/base.py index 7cffd6a..35a3e5d 100644 --- a/cpdctrl/led_control_device/base.py +++ b/cpdctrl/led_control_device/base.py @@ -29,7 +29,7 @@ class LedControlDevice(ABC): pass @abstractmethod - def set_level(level:int): + def set_level(self, level:int): """ Set the led brightness to a certain level diff --git a/cpdctrl/led_control_device/impl/test.py b/cpdctrl/led_control_device/impl/test.py index c64067d..2583431 100644 --- a/cpdctrl/led_control_device/impl/test.py +++ b/cpdctrl/led_control_device/impl/test.py @@ -10,5 +10,5 @@ class TestLedControlDevice(LedControlDevice): def off(self): pass - def set_level(level: int): + def set_level(self, level: int): pass