Skip to content

Commit

Permalink
Merge pull request #32 from psyinfra/uplift
Browse files Browse the repository at this point in the history
exporter.py: normalize whitespace according to pep8
  • Loading branch information
TobiasKadelka authored Jun 27, 2024
2 parents 31ce13c + 4b94c7d commit 715c5b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prometheus_eaton_ups_exporter/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def collect(self) -> Generator[GaugeMetricFamily, None, None]:
'UPS input current (A)',
labels=['ups_id']
)
gauge.add_metric([ups_id], inputs_rm.get('current',0))
gauge.add_metric([ups_id], inputs_rm.get('current', 0))
yield gauge

gauge = GaugeMetricFamily(
Expand Down Expand Up @@ -166,7 +166,8 @@ def collect(self) -> Generator[GaugeMetricFamily, None, None]:
labels=['ups_id']
)
gauge.add_metric(
[ups_id], int(powerbank_m.get('remainingChargeCapacity',0)) / 100
[ups_id],
int(powerbank_m.get('remainingChargeCapacity', 0)) / 100
)
yield gauge

Expand Down

0 comments on commit 715c5b9

Please sign in to comment.