From 976f9a732ca70b95f152bfdf941bbf70108bbfdb Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 18 Mar 2021 08:28:32 -0400 Subject: [PATCH] power: fix whitespace issues Signed-off-by: Eric Callahan --- moonraker/plugins/power.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/plugins/power.py b/moonraker/plugins/power.py index 16bf81b..de4f4ad 100644 --- a/moonraker/plugins/power.py +++ b/moonraker/plugins/power.py @@ -37,7 +37,7 @@ class PrinterPower: elif dev_type == "shelly": dev = Shelly(cfg) elif dev_type == "homeseer": - dev = HomeSeer(cfg) + dev = HomeSeer(cfg) else: raise config.error(f"Unsupported Device Type: {dev_type}") self.devices[dev.get_name()] = dev @@ -533,7 +533,7 @@ class HomeSeer(PowerDevice): self.user = config.get("user", "admin") self.password = config.get("password", "") - async def _send_homeseer(self, request, additional = ""): + async def _send_homeseer(self, request, additional=""): url = (f"http://{self.user}:{self.password}@{self.addr}" f"/JSON?user={self.user}&pass={self.password}" f"&request={request}&ref={self.device}&{additional}")