Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.qld_bushfire.geo_location Namespace Reference

Classes

class  QldBushfireFeedEntityManager
 
class  QldBushfireLocationEvent
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_CATEGORY = "category"
 
string ATTR_EXTERNAL_ID = "external_id"
 
string ATTR_PUBLICATION_DATE = "publication_date"
 
string ATTR_STATUS = "status"
 
string ATTR_UPDATED_DATE = "updated_date"
 
string CONF_CATEGORIES = "categories"
 
float DEFAULT_RADIUS_IN_KM = 20.0
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(minutes=5)
 
string SIGNAL_DELETE_ENTITY = "qld_bushfire_delete_{}"
 
string SIGNAL_UPDATE_ENTITY = "qld_bushfire_update_{}"
 
string SOURCE = "qld_bushfire"
 
list VALID_CATEGORIES
 

Detailed Description

Support for Queensland Bushfire Alert Feeds.

Function Documentation

◆ setup_platform()

None homeassistant.components.qld_bushfire.geo_location.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Queensland Bushfire Alert Feed platform.

Definition at line 74 of file geo_location.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.qld_bushfire.geo_location._LOGGER = logging.getLogger(__name__)
private

Definition at line 35 of file geo_location.py.

◆ ATTR_CATEGORY

string homeassistant.components.qld_bushfire.geo_location.ATTR_CATEGORY = "category"

Definition at line 37 of file geo_location.py.

◆ ATTR_EXTERNAL_ID

string homeassistant.components.qld_bushfire.geo_location.ATTR_EXTERNAL_ID = "external_id"

Definition at line 38 of file geo_location.py.

◆ ATTR_PUBLICATION_DATE

string homeassistant.components.qld_bushfire.geo_location.ATTR_PUBLICATION_DATE = "publication_date"

Definition at line 39 of file geo_location.py.

◆ ATTR_STATUS

string homeassistant.components.qld_bushfire.geo_location.ATTR_STATUS = "status"

Definition at line 40 of file geo_location.py.

◆ ATTR_UPDATED_DATE

string homeassistant.components.qld_bushfire.geo_location.ATTR_UPDATED_DATE = "updated_date"

Definition at line 41 of file geo_location.py.

◆ CONF_CATEGORIES

string homeassistant.components.qld_bushfire.geo_location.CONF_CATEGORIES = "categories"

Definition at line 43 of file geo_location.py.

◆ DEFAULT_RADIUS_IN_KM

float homeassistant.components.qld_bushfire.geo_location.DEFAULT_RADIUS_IN_KM = 20.0

Definition at line 45 of file geo_location.py.

◆ PLATFORM_SCHEMA

homeassistant.components.qld_bushfire.geo_location.PLATFORM_SCHEMA
Initial value:
1 = GEO_LOCATION_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_LATITUDE): cv.latitude,
4  vol.Optional(CONF_LONGITUDE): cv.longitude,
5  vol.Optional(CONF_RADIUS, default=DEFAULT_RADIUS_IN_KM): vol.Coerce(float),
6  vol.Optional(CONF_CATEGORIES, default=[]): vol.All(
7  cv.ensure_list, [vol.In(VALID_CATEGORIES)]
8  ),
9  }
10 )

Definition at line 62 of file geo_location.py.

◆ SCAN_INTERVAL

homeassistant.components.qld_bushfire.geo_location.SCAN_INTERVAL = timedelta(minutes=5)

Definition at line 47 of file geo_location.py.

◆ SIGNAL_DELETE_ENTITY

string homeassistant.components.qld_bushfire.geo_location.SIGNAL_DELETE_ENTITY = "qld_bushfire_delete_{}"

Definition at line 49 of file geo_location.py.

◆ SIGNAL_UPDATE_ENTITY

string homeassistant.components.qld_bushfire.geo_location.SIGNAL_UPDATE_ENTITY = "qld_bushfire_update_{}"

Definition at line 50 of file geo_location.py.

◆ SOURCE

string homeassistant.components.qld_bushfire.geo_location.SOURCE = "qld_bushfire"

Definition at line 52 of file geo_location.py.

◆ VALID_CATEGORIES

list homeassistant.components.qld_bushfire.geo_location.VALID_CATEGORIES
Initial value:
1 = [
2  "Emergency Warning",
3  "Watch and Act",
4  "Advice",
5  "Notification",
6  "Information",
7 ]

Definition at line 54 of file geo_location.py.