mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-06-04 16:53:50 -04:00
Enable more pylint checks
This commit is contained in:
parent
e1c8bc5835
commit
5a778373b6
15 changed files with 58 additions and 43 deletions
|
@ -11,6 +11,7 @@ from typing import Tuple, Dict, Any
|
|||
if __name__ == "__main__":
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
# pylint: disable=wrong-import-position
|
||||
from pyhon import Hon, HonAPI, diagnose, printer
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -91,11 +92,9 @@ async def main() -> None:
|
|||
data = device.data.copy()
|
||||
attr = "get" if args.get("all") else "pop"
|
||||
print(
|
||||
printer.key_print(
|
||||
data["attributes"].__getattribute__(attr)("parameters")
|
||||
)
|
||||
printer.key_print(getattr(data["attributes"], attr)("parameters"))
|
||||
)
|
||||
print(printer.key_print(data.__getattribute__(attr)("appliance")))
|
||||
print(printer.key_print(getattr(data, attr)("appliance")))
|
||||
print(printer.key_print(data))
|
||||
print(
|
||||
printer.pretty_print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue