Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Jun 16, 2023
1 parent ddd7671 commit ffd240b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wideboy/scenes/default/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def setup(self):
entity_id="sensor.octopus_energy_electricity_current_rate",
icon=MaterialIcons.MDI_BOLT,
icon_color=Color(255, 128, 128, 255),
template="£{{ states('sensor.octopus_energy_electricity_current_rate') | float | round(2) }}",
template="£{{ '{:.2f}'.format(states('sensor.octopus_energy_electricity_current_rate') | float) }}",
),
dict(
entity_id="switch.lounge_fans",
Expand Down

0 comments on commit ffd240b

Please sign in to comment.