Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.geo_json_events Namespace Reference

Namespaces

 config_flow
 
 const
 
 geo_location
 
 manager
 

Functions

bool async_setup_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
None remove_orphaned_entities (HomeAssistant hass, str entry_id)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

The GeoJSON events component.

Function Documentation

◆ async_setup_entry()

bool homeassistant.components.geo_json_events.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Set up the GeoJSON events component as config entry.

Definition at line 18 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.geo_json_events.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload the GeoJSON events config entry.

Definition at line 49 of file __init__.py.

◆ remove_orphaned_entities()

None homeassistant.components.geo_json_events.remove_orphaned_entities ( HomeAssistant  hass,
str  entry_id 
)
Remove orphaned geo_location entities.

This is needed because when fetching data from the external feed this integration is
determining which entities need to be added, updated or removed by comparing the
current with the previous data. After a restart of Home Assistant the integration
has no previous data to compare against, and thus all entities managed by this
integration are removed after startup.

Definition at line 31 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.geo_json_events._LOGGER = logging.getLogger(__name__)
private

Definition at line 15 of file __init__.py.