Skip to content

Commit f619a42

Browse files
chore(pre-commit.ci): pre-commit autoupdate (#26)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5036610 commit f619a42

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/commitizen-tools/commitizen
12-
rev: v3.31.0
12+
rev: v4.1.0
1313
hooks:
1414
- id: commitizen
1515
stages: [commit-msg]
@@ -35,7 +35,7 @@ repos:
3535
- id: prettier
3636
args: ["--tab-width", "2"]
3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.7.4
38+
rev: v0.8.3
3939
hooks:
4040
- id: ruff
4141
args: [--fix, --exit-non-zero-on-fix]

src/mficlient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _control_port(self, ident, state, voltage=0):
219219
"Output 12v": 12,
220220
"Output 24v": 24,
221221
}
222-
voltage = state and voltages.get(the_port["model"], 0) or 0
222+
voltage = (state and voltages.get(the_port["model"], 0)) or 0
223223

224224
data = {
225225
"sId": ident,

src/mficlient/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def cmd_sensors_csv(self, options):
173173

174174
vals = [str(sensor.get(k, "")) for k in keys]
175175
vals.insert(0, rpt_time.strftime(TIME_FORMAT))
176-
vals.append(wh_rpt_time and wh_rpt_time.strftime(TIME_FORMAT) or "")
176+
vals.append((wh_rpt_time and wh_rpt_time.strftime(TIME_FORMAT)) or "")
177177
keys.insert(0, "time")
178178
keys.append("wh_rpt_time")
179179

0 commit comments

Comments
 (0)