Skip to content

Commit

Permalink
fix: bad copilot autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomes committed Feb 25, 2024
1 parent 6869445 commit e2c7cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/erse/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ async def calc_costs(meter_state):
if meter_state.state in [STATE_UNAVAILABLE, STATE_UNKNOWN]:
kwh = 0
elif (
meter_state.attributes[ATTR_UNIT_OF_MEASUREMENT] == UnitOfEnergy.ENERGY_WATT_HOUR
meter_state.attributes[ATTR_UNIT_OF_MEASUREMENT] == UnitOfEnergy.WATT_HOUR
):
kwh = float(meter_state.state) / 1000
else:
Expand Down

0 comments on commit e2c7cd4

Please sign in to comment.