From d6557eefdab22ef6db3a5991a734645a394c2171 Mon Sep 17 00:00:00 2001 From: Igor Sankovich Date: Wed, 8 Nov 2017 00:31:43 +0300 Subject: [PATCH] Fix coding style for houndci --- miio/vacuum.py | 2 ++ miio/vacuum_cli.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/miio/vacuum.py b/miio/vacuum.py index b19676477..16aa475e9 100644 --- a/miio/vacuum.py +++ b/miio/vacuum.py @@ -21,12 +21,14 @@ class TimerState(enum.Enum): On = "on" Off = "off" + class Consumable(enum.Enum): MainBrush = "main_brush_work_time" SideBrush = "side_brush_work_time" Filter = "filter_work_time" SensorDirty = "sensor_dirty_time" + class Vacuum(Device): """Main class representing the vacuum.""" diff --git a/miio/vacuum_cli.py b/miio/vacuum_cli.py index 0ccad4ba1..1e4e34f9e 100644 --- a/miio/vacuum_cli.py +++ b/miio/vacuum_cli.py @@ -161,7 +161,8 @@ def reset_consumable(vac: miio.Vacuum, name): else: return - click.echo("Resetting consumable '%s': %s" % (name, vac.consumable_reset(consumable))) + click.echo("Resetting consumable '%s': %s" % (name, + vac.consumable_reset(consumable))) @cli.command()