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 2024-02-18 13:03:13 +13:00 committed by GitHub
parent 0d6f4058ca
commit a656e14b20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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

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"