Fix Local Calendar changing user-specified capitalisation of calendar names (#108454)

When you create a Local Calendar, say, "Home Maintenance", the integration overrides this to instead be "Home maintenance".
This commit is contained in:
Cody C authored and GitHub committed 2024-02-17 16:03:13 -08:00
1 parent 0d6f4058ca
commit a656e14b20
2 files changed
+2 -2

No files matched your search

@@ -73,7 +73,7 @@ class LocalCalendarEntity(CalendarEntity):
self._store = store
self._calendar = calendar
self._event: CalendarEvent | None = None
self._attr_name = name.capitalize()
self._attr_name = name
self._attr_unique_id = unique_id
@property
+1 -1
View File
@@ -19,7 +19,7 @@ from tests.common import MockConfigEntry
from tests.typing import ClientSessionGenerator, WebSocketGenerator
CALENDAR_NAME = "Light Schedule"
FRIENDLY_NAME = "Light schedule"
FRIENDLY_NAME = "Light Schedule"
STORAGE_KEY = "light_schedule"
TEST_ENTITY = "calendar.light_schedule"