Skip to content

Commit

Permalink
Tile tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Dec 7, 2023
1 parent 6894621 commit 0380e8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wideboy/scenes/default/tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def format_minutes(minutes: Optional[int] = None):
return "N/A"
hours = int(minutes) // 60
minutes = int(minutes) % 60
return f"{hours}h{minutes:02d}m"
return f"{hours}h{minutes:01d}m"


def format_compass_bearing(bearing: Optional[int] = None):
Expand Down Expand Up @@ -364,7 +364,7 @@ def icon_color_background(self):
class CellElectricityAccumulativeCost(GridCell):
entity_id = "sensor.octopus_energy_electricity_current_accumulative_cost"
icon_codepoint = FontAwesomeIcons.ICON_FA_PLUG
limit = 3.00
limit = 2.50

@property
def label(self):
Expand Down Expand Up @@ -394,7 +394,7 @@ def icon_color_background(self):
class CellGasAccumulativeCost(GridCell):
entity_id = "sensor.octopus_energy_gas_current_accumulative_cost"
icon_codepoint = FontAwesomeIcons.ICON_FA_FIRE_FLAME_SIMPLE
limit = 3.00
limit = 2.50

@property
def label(self):
Expand Down

0 comments on commit 0380e8c

Please sign in to comment.