Namespaces | |
| api | |
| application_credentials | |
| calendar | |
| config_flow | |
| const | |
| coordinator | |
| diagnostics | |
| store | |
Functions | |
| bool | async_entry_has_scopes (ConfigEntry entry) |
| None | async_reload_entry (HomeAssistant hass, ConfigEntry entry) |
| None | async_remove_entry (HomeAssistant hass, ConfigEntry entry) |
| None | async_setup_add_event_service (HomeAssistant hass, GoogleCalendarService calendar_service) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| dict[str, Any] | get_calendar_info (HomeAssistant hass, Mapping[str, Any] calendar) |
| dict[str, Any] | load_config (str path) |
| None | update_config (str path, dict[str, Any] calendar) |
Variables | |
| _EVENT_IN_TYPES | |
| _LOGGER = logging.getLogger(__name__) | |
| _SINGLE_CALSEARCH_CONFIG | |
| ADD_EVENT_SERVICE_SCHEMA | |
| string | CONF_CAL_ID = "cal_id" |
| string | CONF_IGNORE_AVAILABILITY = "ignore_availability" |
| string | CONF_MAX_RESULTS = "max_results" |
| string | CONF_SEARCH = "search" |
| string | CONF_TRACK = "track" |
| string | CONF_TRACK_NEW = "track_new_calendar" |
| CONFIG_SCHEMA = vol.Schema(cv.removed(DOMAIN), extra=vol.ALLOW_EXTRA) | |
| string | DEFAULT_CONF_OFFSET = "!!" |
| DEVICE_SCHEMA | |
| string | ENTITY_ID_FORMAT = DOMAIN + ".{}" |
| string | EVENT_CALENDAR_ID = "calendar_id" |
| list | PLATFORMS = [Platform.CALENDAR] |
| string | SERVICE_ADD_EVENT = "add_event" |
| string | YAML_DEVICES = f"{DOMAIN}_calendars.yaml" |
Support for Google - Calendar Event Devices.
| bool homeassistant.components.google.async_entry_has_scopes | ( | ConfigEntry | entry | ) |
Verify that the config entry desired scope is present in the oauth token.
Definition at line 211 of file __init__.py.
| None homeassistant.components.google.async_reload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Reload config entry if the access options change.
Definition at line 225 of file __init__.py.
| None homeassistant.components.google.async_remove_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Handle removal of a local storage.
Definition at line 231 of file __init__.py.
| None homeassistant.components.google.async_setup_add_event_service | ( | HomeAssistant | hass, |
| GoogleCalendarService | calendar_service | ||
| ) |
Add the service to add events.
Definition at line 237 of file __init__.py.
| bool homeassistant.components.google.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up Google from a config entry.
Definition at line 143 of file __init__.py.
| bool homeassistant.components.google.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 218 of file __init__.py.
| dict[str, Any] homeassistant.components.google.get_calendar_info | ( | HomeAssistant | hass, |
| Mapping[str, Any] | calendar | ||
| ) |
Convert data from Google into DEVICE_SCHEMA.
Definition at line 310 of file __init__.py.
| dict[str, Any] homeassistant.components.google.load_config | ( | str | path | ) |
Load the google_calendar_devices.yaml.
Definition at line 330 of file __init__.py.
| None homeassistant.components.google.update_config | ( | str | path, |
| dict[str, Any] | calendar | ||
| ) |
Write the google_calendar_devices.yaml.
Definition at line 346 of file __init__.py.
|
private |
Definition at line 107 of file __init__.py.
|
private |
Definition at line 56 of file __init__.py.
|
private |
Definition at line 82 of file __init__.py.
| homeassistant.components.google.ADD_EVENT_SERVICE_SCHEMA |
Definition at line 114 of file __init__.py.
| string homeassistant.components.google.CONF_CAL_ID = "cal_id" |
Definition at line 62 of file __init__.py.
| string homeassistant.components.google.CONF_IGNORE_AVAILABILITY = "ignore_availability" |
Definition at line 65 of file __init__.py.
| string homeassistant.components.google.CONF_MAX_RESULTS = "max_results" |
Definition at line 66 of file __init__.py.
| string homeassistant.components.google.CONF_SEARCH = "search" |
Definition at line 64 of file __init__.py.
| string homeassistant.components.google.CONF_TRACK = "track" |
Definition at line 63 of file __init__.py.
| string homeassistant.components.google.CONF_TRACK_NEW = "track_new_calendar" |
Definition at line 60 of file __init__.py.
| homeassistant.components.google.CONFIG_SCHEMA = vol.Schema(cv.removed(DOMAIN), extra=vol.ALLOW_EXTRA) |
Definition at line 79 of file __init__.py.
| string homeassistant.components.google.DEFAULT_CONF_OFFSET = "!!" |
Definition at line 68 of file __init__.py.
| homeassistant.components.google.DEVICE_SCHEMA |
Definition at line 97 of file __init__.py.
| string homeassistant.components.google.ENTITY_ID_FORMAT = DOMAIN + ".{}" |
Definition at line 58 of file __init__.py.
| string homeassistant.components.google.EVENT_CALENDAR_ID = "calendar_id" |
Definition at line 70 of file __init__.py.
| list homeassistant.components.google.PLATFORMS = [Platform.CALENDAR] |
Definition at line 76 of file __init__.py.
| string homeassistant.components.google.SERVICE_ADD_EVENT = "add_event" |
Definition at line 72 of file __init__.py.
| string homeassistant.components.google.YAML_DEVICES = f"{DOMAIN}_calendars.yaml" |
Definition at line 74 of file __init__.py.