Skip to content

Commit

Permalink
chore(pre-commit.ci): auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2024
1 parent c811f03 commit a599fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mficlient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _control_port(self, ident, state, voltage=0):
"Output 12v": 12,
"Output 24v": 24,
}
voltage = state and voltages.get(the_port["model"], 0) or 0
voltage = (state and voltages.get(the_port["model"], 0)) or 0

data = {
"sId": ident,
Expand Down
2 changes: 1 addition & 1 deletion src/mficlient/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def cmd_sensors_csv(self, options):

vals = [str(sensor.get(k, "")) for k in keys]
vals.insert(0, rpt_time.strftime(TIME_FORMAT))
vals.append(wh_rpt_time and wh_rpt_time.strftime(TIME_FORMAT) or "")
vals.append((wh_rpt_time and wh_rpt_time.strftime(TIME_FORMAT)) or "")
keys.insert(0, "time")
keys.append("wh_rpt_time")

Expand Down

0 comments on commit a599fef

Please sign in to comment.