mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add module.device to the public api (#1478)
This commit is contained in:
@@ -182,6 +182,11 @@ class Module(ABC):
|
||||
self._module = module
|
||||
self._module_features: dict[str, Feature] = {}
|
||||
|
||||
@property
|
||||
def device(self) -> Device:
|
||||
"""Return the device exposing the module."""
|
||||
return self._device
|
||||
|
||||
@property
|
||||
def _all_features(self) -> dict[str, Feature]:
|
||||
"""Get the features for this module and any sub modules."""
|
||||
|
Reference in New Issue
Block a user