power: fix whitespace issues
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
bf67bce65f
commit
976f9a732c
|
@ -37,7 +37,7 @@ class PrinterPower:
|
||||||
elif dev_type == "shelly":
|
elif dev_type == "shelly":
|
||||||
dev = Shelly(cfg)
|
dev = Shelly(cfg)
|
||||||
elif dev_type == "homeseer":
|
elif dev_type == "homeseer":
|
||||||
dev = HomeSeer(cfg)
|
dev = HomeSeer(cfg)
|
||||||
else:
|
else:
|
||||||
raise config.error(f"Unsupported Device Type: {dev_type}")
|
raise config.error(f"Unsupported Device Type: {dev_type}")
|
||||||
self.devices[dev.get_name()] = dev
|
self.devices[dev.get_name()] = dev
|
||||||
|
@ -533,7 +533,7 @@ class HomeSeer(PowerDevice):
|
||||||
self.user = config.get("user", "admin")
|
self.user = config.get("user", "admin")
|
||||||
self.password = config.get("password", "")
|
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}"
|
url = (f"http://{self.user}:{self.password}@{self.addr}"
|
||||||
f"/JSON?user={self.user}&pass={self.password}"
|
f"/JSON?user={self.user}&pass={self.password}"
|
||||||
f"&request={request}&ref={self.device}&{additional}")
|
f"&request={request}&ref={self.device}&{additional}")
|
||||||
|
|
Loading…
Reference in New Issue