Explorar el Código

Default guest_name to '<No Guest>'

ZiB hace 4 meses
padre
commit
c23918e3e0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      custom_components/room_cal_ha/models.py

+ 1 - 1
custom_components/room_cal_ha/models.py

@@ -7,7 +7,7 @@ from typing import Any
 
 
 @dataclass
 @dataclass
 class ReservationData:
 class ReservationData:
-  guest_name: str | None = None
+  guest_name: str | None = "<No Guest>"
   check_in_date: date | None = None
   check_in_date: date | None = None
   check_in_time: time | None = time(14, 0)
   check_in_time: time | None = time(14, 0)
   check_out_date: date | None = None
   check_out_date: date | None = None