Browse Source

Double pad

ZiB 4 months ago
parent
commit
7576439927
1 changed files with 1 additions and 1 deletions
  1. 1 1
      custom_components/room_cal_ha/sensor.py

+ 1 - 1
custom_components/room_cal_ha/sensor.py

@@ -177,7 +177,7 @@ class ReservationTimeSensor(_ReservationSensor):
 
 def _dt_attrs(dt: datetime) -> dict[str, str]:
   _h12 = dt.hour % 12 or 12
-  _pad = " " if _h12 < 10 else ""
+  _pad = "  " if _h12 < 10 else ""
   return {
     "datetime": dt.isoformat(),
     "datetime_abbr": dt.strftime("%Y-%m-%d @ %-I %p"),