Skip to content

Commit

Permalink
Changed default energy units to kWh
Browse files Browse the repository at this point in the history
Should resolve "zero" day energy readings.
In reality, the day reading was being converted to MWh and was too low to show as anything other than 0.0
  • Loading branch information
safepay committed Mar 29, 2020
1 parent 6b29617 commit 7f3c6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/fronius_inverter/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
vol.Optional(CONF_NAME, default='Fronius'): cv.string,
vol.Optional(CONF_SCOPE, default='Device'):
vol.In(SCOPE_TYPES),
vol.Optional(CONF_UNITS, default='MWh'):
vol.Optional(CONF_UNITS, default='kWh'):
vol.In(UNIT_TYPES),
vol.Optional(CONF_POWER_UNITS, default='W'):
vol.In(POWER_UNIT_TYPES),
Expand Down

0 comments on commit 7f3c6e9

Please sign in to comment.