Skip to content

Commit

Permalink
Fix wrong SI unit_prefix in Integration component (home-assistant#33227
Browse files Browse the repository at this point in the history
…) (home-assistant#33228)

* wrong SI metric prefixes
  • Loading branch information
bangom authored Mar 29, 2020
1 parent 312af53 commit 1f9f5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/integration/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
INTEGRATION_METHOD = [TRAPEZOIDAL_METHOD, LEFT_METHOD, RIGHT_METHOD]

# SI Metric prefixes
UNIT_PREFIXES = {None: 1, "k": 10 ** 3, "G": 10 ** 6, "T": 10 ** 9}
UNIT_PREFIXES = {None: 1, "k": 10 ** 3, "M": 10 ** 6, "G": 10 ** 9, "T": 10 ** 12}

# SI Time prefixes
UNIT_TIME = {
Expand Down

0 comments on commit 1f9f5bf

Please sign in to comment.