mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
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
@ -73,7 +73,7 @@ class LocalCalendarEntity(CalendarEntity):
|
|||||||
self._store = store
|
self._store = store
|
||||||
self._calendar = calendar
|
self._calendar = calendar
|
||||||
self._event: CalendarEvent | None = None
|
self._event: CalendarEvent | None = None
|
||||||
self._attr_name = name.capitalize()
|
self._attr_name = name
|
||||||
self._attr_unique_id = unique_id
|
self._attr_unique_id = unique_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -19,7 +19,7 @@ from tests.common import MockConfigEntry
|
|||||||
from tests.typing import ClientSessionGenerator, WebSocketGenerator
|
from tests.typing import ClientSessionGenerator, WebSocketGenerator
|
||||||
|
|
||||||
CALENDAR_NAME = "Light Schedule"
|
CALENDAR_NAME = "Light Schedule"
|
||||||
FRIENDLY_NAME = "Light schedule"
|
FRIENDLY_NAME = "Light Schedule"
|
||||||
STORAGE_KEY = "light_schedule"
|
STORAGE_KEY = "light_schedule"
|
||||||
TEST_ENTITY = "calendar.light_schedule"
|
TEST_ENTITY = "calendar.light_schedule"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user