From 20ec2f5c90cd519770ca650ed80624d669e3955d Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Wed, 14 Feb 2024 20:40:25 +0100 Subject: [PATCH] Make iotmodule's _add_feature private, too --- kasa/iot/modules/cloud.py | 2 +- kasa/iot/modules/module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kasa/iot/modules/cloud.py b/kasa/iot/modules/cloud.py index 7caa1530..76d6fb1e 100644 --- a/kasa/iot/modules/cloud.py +++ b/kasa/iot/modules/cloud.py @@ -28,7 +28,7 @@ class Cloud(IotModule): def __init__(self, device, module): super().__init__(device, module) - self.add_feature( + self._add_feature( Feature( device=device, container=self, diff --git a/kasa/iot/modules/module.py b/kasa/iot/modules/module.py index 73808241..57c245a0 100644 --- a/kasa/iot/modules/module.py +++ b/kasa/iot/modules/module.py @@ -37,7 +37,7 @@ class IotModule(ABC): self._module = module self._module_features: Dict[str, Feature] = {} - def add_feature(self, feature: Feature): + def _add_feature(self, feature: Feature): """Add module feature.""" feature_name = f"{self._module}_{feature.name}" if feature_name in self._module_features: