Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, AddEntitiesCallback async_add_entities, timedelta scan_interval, tuple[float, float] coordinates, str feed_type, float radius_in_km, float minimum_magnitude)
 
None async_init (self)
 
None async_update (self)
 
UsgsEarthquakeHazardsProgramFeedEntry|None get_entry (self, str external_id)
 

Private Member Functions

None _generate_entity (self, str external_id)
 
None _remove_entity (self, str external_id)
 
None _update_entity (self, str external_id)
 

Private Attributes

 _async_add_entities
 
 _feed_manager
 
 _hass
 
 _scan_interval
 

Detailed Description

Feed Entity Manager for USGS Earthquake Hazards Program feed.

Definition at line 134 of file geo_location.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager.__init__ (   self,
HomeAssistant  hass,
AddEntitiesCallback  async_add_entities,
timedelta  scan_interval,
tuple[float, float]  coordinates,
str  feed_type,
float  radius_in_km,
float  minimum_magnitude 
)
Initialize the Feed Entity Manager.

Definition at line 137 of file geo_location.py.

Member Function Documentation

◆ _generate_entity()

None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._generate_entity (   self,
str  external_id 
)
private
Generate new entity.

Definition at line 188 of file geo_location.py.

◆ _remove_entity()

None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._remove_entity (   self,
str  external_id 
)
private
Remove entity.

Definition at line 198 of file geo_location.py.

◆ _update_entity()

None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._update_entity (   self,
str  external_id 
)
private
Update entity.

Definition at line 194 of file geo_location.py.

◆ async_init()

None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager.async_init (   self)
Schedule initial and regular updates based on configured time interval.

Definition at line 164 of file geo_location.py.

◆ async_update()

None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager.async_update (   self)
Refresh data.

Definition at line 177 of file geo_location.py.

◆ get_entry()

UsgsEarthquakeHazardsProgramFeedEntry | None homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager.get_entry (   self,
str   external_id 
)
Get feed entry by external id.

Definition at line 182 of file geo_location.py.

Member Data Documentation

◆ _async_add_entities

homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._async_add_entities
private

Definition at line 161 of file geo_location.py.

◆ _feed_manager

homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._feed_manager
private

Definition at line 151 of file geo_location.py.

◆ _hass

homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._hass
private

Definition at line 149 of file geo_location.py.

◆ _scan_interval

homeassistant.components.usgs_earthquakes_feed.geo_location.UsgsEarthquakesFeedEntityManager._scan_interval
private

Definition at line 162 of file geo_location.py.


The documentation for this class was generated from the following file: