Add new cli command 'command' to execute arbitrary commands (#692)

* Add new cli command 'command' to execute arbitrary commands

This deprecates 'raw-command', which requires positional argument for module,
in favor of new 'command' that accepts '--module' option for IOT devices.

* Pull block list to the module level
This commit is contained in:
Teemu R
2024-01-24 09:10:55 +01:00
committed by GitHub
parent 5907dc763a
commit 8b566757c3
2 changed files with 20 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ class Emeter(Usage):
self,
data: List[Dict[str, Union[int, float]]],
entry_key: str,
kwh: bool=True,
kwh: bool = True,
key: Optional[int] = None,
) -> Dict[Union[int, float], Union[int, float]]:
"""Return emeter information keyed with the day/month.