Add module.device to the public api (#1478)

This commit is contained in:
Steven B.
2025-01-29 18:49:38 +00:00
committed by GitHub
parent 82fbe1226e
commit ebd370da74
5 changed files with 15 additions and 10 deletions

View File

@@ -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."""