power: fix whitespace errors
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
efdcc263dd
commit
a746019790
|
@ -422,7 +422,7 @@ class Tasmota(PowerDevice):
|
|||
self.addr = config.get("address")
|
||||
self.output_id = config.getint("output_id", 1)
|
||||
self.password = config.get("password", "")
|
||||
self.timer = config.get("timer","")
|
||||
self.timer = config.get("timer", "")
|
||||
|
||||
async def _send_tasmota_command(self, command, password=None):
|
||||
if command in ["on", "off"]:
|
||||
|
@ -462,7 +462,7 @@ class Tasmota(PowerDevice):
|
|||
try:
|
||||
state = res[f"POWER{self.output_id}"].lower()
|
||||
except KeyError as e:
|
||||
if self.output_id == 1 :
|
||||
if self.output_id == 1:
|
||||
state = res[f"POWER"].lower()
|
||||
else:
|
||||
raise KeyError(e)
|
||||
|
@ -480,7 +480,7 @@ class Tasmota(PowerDevice):
|
|||
try:
|
||||
state = res[f"POWER{self.output_id}"].lower()
|
||||
except KeyError as e:
|
||||
if self.output_id == 1 :
|
||||
if self.output_id == 1:
|
||||
state = res[f"POWER"].lower()
|
||||
else:
|
||||
raise KeyError(e)
|
||||
|
@ -500,7 +500,7 @@ class Shelly(PowerDevice):
|
|||
self.output_id = config.getint("output_id", 0)
|
||||
self.user = config.get("user", "admin")
|
||||
self.password = config.get("password", "")
|
||||
self.timer = config.get("timer","")
|
||||
self.timer = config.get("timer", "")
|
||||
|
||||
async def _send_shelly_command(self, command):
|
||||
if command == "on":
|
||||
|
|
Loading…
Reference in New Issue