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

Classes

class  DemoGeolocationEvent
 
class  DemoManager
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
float AVG_KM_PER_DEGREE = 111.0
 
 DEFAULT_UPDATE_INTERVAL = timedelta(minutes=1)
 
list EVENT_NAMES
 
int MAX_RADIUS_IN_KM = 50
 
int NUMBER_OF_DEMO_DEVICES = 5
 
string SOURCE = "demo"
 

Detailed Description

Demo platform for the geolocation component.

Function Documentation

◆ setup_platform()

None homeassistant.components.demo.geo_location.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Demo geolocations.

Definition at line 45 of file geo_location.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 17 of file geo_location.py.

◆ AVG_KM_PER_DEGREE

float homeassistant.components.demo.geo_location.AVG_KM_PER_DEGREE = 111.0

Definition at line 19 of file geo_location.py.

◆ DEFAULT_UPDATE_INTERVAL

homeassistant.components.demo.geo_location.DEFAULT_UPDATE_INTERVAL = timedelta(minutes=1)

Definition at line 20 of file geo_location.py.

◆ EVENT_NAMES

list homeassistant.components.demo.geo_location.EVENT_NAMES
Initial value:
1 = [
2  "Bushfire",
3  "Hazard Reduction",
4  "Grass Fire",
5  "Burn off",
6  "Structure Fire",
7  "Fire Alarm",
8  "Thunderstorm",
9  "Tornado",
10  "Cyclone",
11  "Waterspout",
12  "Dust Storm",
13  "Blizzard",
14  "Ice Storm",
15  "Earthquake",
16  "Tsunami",
17 ]

Definition at line 24 of file geo_location.py.

◆ MAX_RADIUS_IN_KM

int homeassistant.components.demo.geo_location.MAX_RADIUS_IN_KM = 50

Definition at line 21 of file geo_location.py.

◆ NUMBER_OF_DEMO_DEVICES

int homeassistant.components.demo.geo_location.NUMBER_OF_DEMO_DEVICES = 5

Definition at line 22 of file geo_location.py.

◆ SOURCE

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

Definition at line 42 of file geo_location.py.