Skip to content

Commit

Permalink
v0.0.10 - fixing bug with unit_of_measurement_m2 not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt committed May 19, 2020
1 parent f212f17 commit 56d27bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/smart_irrigation/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def show_m2_or_sq_ft(self, value, show_unit=True):
if self.coordinator.system_of_measurement == SETTING_METRIC:
retval = f"{value}"
if show_unit:
retval = retval + " {UNIT_OF_MEASUREMENT_M2}"
retval = retval + f" {UNIT_OF_MEASUREMENT_M2}"
return retval
else:
retval = f"{round(value * M2_TO_SQ_FT_FACTOR,2)}"
Expand Down

0 comments on commit 56d27bf

Please sign in to comment.