summaryrefslogtreecommitdiff
path: root/smart_home/lights.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-03 14:18:37 -0800
committerScott Gasch <[email protected]>2022-02-03 14:18:37 -0800
commit713a609bd19d491de03debf8a4a6ddf2540b13dc (patch)
tree6593978162d3c11c3a54e44a770aded4abc79704 /smart_home/lights.py
parenteb1c6392095947b3205c4d52cd9b1507e6cd776b (diff)
Change settings in flake8 and black.
Diffstat (limited to 'smart_home/lights.py')
-rw-r--r--smart_home/lights.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/smart_home/lights.py b/smart_home/lights.py
index 240e7da..80bfffa 100644
--- a/smart_home/lights.py
+++ b/smart_home/lights.py
@@ -124,15 +124,11 @@ class GoogleLight(BaseLight):
@overrides
def turn_on(self) -> bool:
- return GoogleLight.parse_google_response(
- ask_google(f"turn {self.goog_name()} on")
- )
+ return GoogleLight.parse_google_response(ask_google(f"turn {self.goog_name()} on"))
@overrides
def turn_off(self) -> bool:
- return GoogleLight.parse_google_response(
- ask_google(f"turn {self.goog_name()} off")
- )
+ return GoogleLight.parse_google_response(ask_google(f"turn {self.goog_name()} off"))
@overrides
def status(self) -> str:
@@ -187,9 +183,7 @@ class GoogleLight(BaseLight):
@overrides
def make_color(self, color: str) -> bool:
- return GoogleLight.parse_google_response(
- ask_google(f"make {self.goog_name()} {color}")
- )
+ return GoogleLight.parse_google_response(ask_google(f"make {self.goog_name()} {color}"))
class TuyaLight(BaseLight):