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:
parent
0d6f4058ca
commit
a656e14b20
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue