mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Rename entity to CalendarEntity
This commit is contained in:
parent
41754785b1
commit
47e56b4c16
@ -4,7 +4,7 @@ sidebar_label: Calendar
|
|||||||
---
|
---
|
||||||
|
|
||||||
A calendar entity is an entity that represents a set of events with a start
|
A calendar entity is an entity that represents a set of events with a start
|
||||||
and end date and/or time, helpful for automations. A calendar entity is derived from the [`homeassistant.components.calendar.CalendarEventDevice`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/calendar/__init__.py).
|
and end date and/or time, helpful for automations. A calendar entity is derived from the [`homeassistant.components.calendar.CalendarEntity`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/calendar/__init__.py).
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ A calendar entity can return events that occur during a particular time range. S
|
|||||||
- Recurring events should be flattened and returned as individual `CalendarEvent`.
|
- Recurring events should be flattened and returned as individual `CalendarEvent`.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class MyCalendar(CalendarEventDevice):
|
class MyCalendar(CalendarEntity):
|
||||||
|
|
||||||
async def async_get_events(
|
async def async_get_events(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user