Skip to content
Snippets Groups Projects
Commit 5232f774 authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

Whitespace

parent 71852315
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ class State(enum.IntEnum):
def __str__(self):
return self._name_
class Compressor(enum.IntEnum):
"""Compressor state, register 2."""
......@@ -43,7 +43,7 @@ class BitField(enum.IntFlag):
def __str__(self):
return self._name_
class Warning(BitField):
"""Warning state, registers 3-4."""
......@@ -206,7 +206,7 @@ def main(ctx, device):
@main.command()
@click.pass_obj
def status(compressor):
config = compressor.get_configuration()
print(f' Model: {config.model}')
......@@ -216,7 +216,7 @@ def status(compressor):
print(f' Temperature Units: {config.temperature_units.name}')
status = compressor.get_status()
print(f' State: {State(status.state).name}')
print(f' Compressor: {Compressor(status.power).name}')
print(f' Warnings: {Warning.fromint(status.warnings)}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment