mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Pass container to attribute_getter
This commit is contained in:
parent
330763bc83
commit
3c437fb297
@ -195,7 +195,7 @@ class Feature:
|
||||
if isinstance(getter, str):
|
||||
return getattr(self._container, getter)
|
||||
if callable(getter):
|
||||
return getter()
|
||||
return getter(self._container)
|
||||
raise ValueError("Invalid getter: %s", getter) # pragma: no cover
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user