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

Namespaces

 config_flow
 
 const
 
 diagnostics
 
 geo_location
 
 sensor
 

Classes

class  GeonetnzQuakesFeedEntityManager
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA
 

Detailed Description

The GeoNet NZ Quakes integration.

Function Documentation

◆ async_setup()

bool homeassistant.components.geonetnz_quakes.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the GeoNet NZ Quakes component.

Definition at line 63 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.geonetnz_quakes.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Set up the GeoNet NZ Quakes component as config entry.

Definition at line 92 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.geonetnz_quakes.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload an GeoNet NZ Quakes component config entry.

Definition at line 110 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 38 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.geonetnz_quakes.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Inclusive(CONF_LATITUDE, "coordinates"): cv.latitude,
6  vol.Inclusive(CONF_LONGITUDE, "coordinates"): cv.longitude,
7  vol.Optional(CONF_MMI, default=DEFAULT_MMI): vol.All(
8  vol.Coerce(int), vol.Range(min=-1, max=8)
9  ),
10  vol.Optional(CONF_RADIUS, default=DEFAULT_RADIUS): vol.Coerce(float),
11  vol.Optional(
12  CONF_MINIMUM_MAGNITUDE, default=DEFAULT_MINIMUM_MAGNITUDE
13  ): cv.positive_float,
14  vol.Optional(
15  CONF_SCAN_INTERVAL, default=DEFAULT_SCAN_INTERVAL
16  ): cv.time_period,
17  }
18  )
19  },
20  extra=vol.ALLOW_EXTRA,
21 )

Definition at line 40 of file __init__.py.