Remove last remnants from 'descriptor'

This commit is contained in:
Teemu Rytilahti
2024-02-14 19:14:35 +01:00
parent 5dc190837c
commit fc29d2456e
5 changed files with 13 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ class IotModule(ABC):
self._module_features: Dict[str, Feature] = {}
def add_feature(self, feature: Feature):
"""Add module descriptor."""
"""Add module feature."""
feature_name = f"{self._module}_{feature.name}"
if feature_name in self._module_features:
raise SmartDeviceException("Duplicate name detected %s" % feature_name)