Skip to content

Commit

Permalink
Make hound happy
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Apr 1, 2018
1 parent f4cb2ef commit ebb3c57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion miio/ceil.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def set_color_temperature(self, level: int):
@command(
click.argument("brightness", type=int),
click.argument("cct", type=int),
default_output=format_output("Setting brightness to {brightness} and color temperature to {cct}")
default_output=format_output(
"Setting brightness to {brightness} and color temperature to {cct}")
)
def set_brightness_and_color_temperature(self, brightness: int, cct: int):
"""Set brightness level and the correlated color temperature."""
Expand Down
3 changes: 2 additions & 1 deletion miio/philips_bulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def set_color_temperature(self, level: int):
@command(
click.argument("brightness", type=int),
click.argument("cct", type=int),
default_output=format_output("Setting brightness to {brightness} and color temperature to {cct}")
default_output=format_output(
"Setting brightness to {brightness} and color temperature to {cct}")
)
def set_brightness_and_color_temperature(self, brightness: int, cct: int):
"""Set brightness level and the correlated color temperature."""
Expand Down
4 changes: 2 additions & 2 deletions miio/powerstrip.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ def status(self) -> PowerStripStatus:
defaultdict(lambda: None, zip(properties, values)))

@command(
default_output = format_output("Powering on"),
default_output=format_output("Powering on"),
)
def on(self):
"""Power on."""
return self.send("set_power", ["on"])

@command(
default_output = format_output("Powering off"),
default_output=format_output("Powering off"),
)
def off(self):
"""Power off."""
Expand Down

0 comments on commit ebb3c57

Please sign in to comment.