Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.epic_games_store.calendar Namespace Reference

Classes

class  EGSCalendar
 

Functions

bool _are_date_range_overlapping (DateRange range1, DateRange range2)
 
CalendarEvent _get_calendar_event (dict[str, Any] event)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 DateRange = namedtuple("DateRange", ["start", "end"])
 

Detailed Description

Calendar platform for a Epic Games Store.

Function Documentation

◆ _are_date_range_overlapping()

bool homeassistant.components.epic_games_store.calendar._are_date_range_overlapping ( DateRange  range1,
DateRange  range2 
)
private
Return a CalendarEvent from an API event.

Definition at line 91 of file calendar.py.

◆ _get_calendar_event()

CalendarEvent homeassistant.components.epic_games_store.calendar._get_calendar_event ( dict[str, Any]  event)
private
Return a CalendarEvent from an API event.

Definition at line 81 of file calendar.py.

◆ async_setup_entry()

None homeassistant.components.epic_games_store.calendar.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the local calendar platform.

Definition at line 22 of file calendar.py.

Variable Documentation

◆ DateRange

homeassistant.components.epic_games_store.calendar.DateRange = namedtuple("DateRange", ["start", "end"])

Definition at line 19 of file calendar.py.