Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.metoffice.const Namespace Reference

Variables

string ATTRIBUTION = "Data provided by the Met Office"
 
dictionary CONDITION_MAP
 
string DEFAULT_NAME = "Met Office"
 
 DEFAULT_SCAN_INTERVAL = timedelta(minutes=15)
 
string DOMAIN = "metoffice"
 
string METOFFICE_COORDINATES = "metoffice_coordinates"
 
string METOFFICE_DAILY_COORDINATOR = "metoffice_daily_coordinator"
 
string METOFFICE_HOURLY_COORDINATOR = "metoffice_hourly_coordinator"
 
string METOFFICE_MONITORED_CONDITIONS = "metoffice_monitored_conditions"
 
string METOFFICE_NAME = "metoffice_name"
 
string MODE_3HOURLY = "3hourly"
 
string MODE_DAILY = "daily"
 
dictionary VISIBILITY_CLASSES
 
dictionary VISIBILITY_DISTANCE_CLASSES
 

Detailed Description

Constants for Met Office Integration.

Variable Documentation

◆ ATTRIBUTION

string homeassistant.components.metoffice.const.ATTRIBUTION = "Data provided by the Met Office"

Definition at line 26 of file const.py.

◆ CONDITION_MAP

dictionary homeassistant.components.metoffice.const.CONDITION_MAP
Initial value:
1 = {
2  cond_code: cond_ha
3  for cond_ha, cond_codes in CONDITION_CLASSES.items()
4  for cond_code in cond_codes
5 }

Definition at line 56 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.metoffice.const.DEFAULT_NAME = "Met Office"

Definition at line 25 of file const.py.

◆ DEFAULT_SCAN_INTERVAL

homeassistant.components.metoffice.const.DEFAULT_SCAN_INTERVAL = timedelta(minutes=15)

Definition at line 28 of file const.py.

◆ DOMAIN

string homeassistant.components.metoffice.const.DOMAIN = "metoffice"

Definition at line 23 of file const.py.

◆ METOFFICE_COORDINATES

string homeassistant.components.metoffice.const.METOFFICE_COORDINATES = "metoffice_coordinates"

Definition at line 30 of file const.py.

◆ METOFFICE_DAILY_COORDINATOR

string homeassistant.components.metoffice.const.METOFFICE_DAILY_COORDINATOR = "metoffice_daily_coordinator"

Definition at line 32 of file const.py.

◆ METOFFICE_HOURLY_COORDINATOR

string homeassistant.components.metoffice.const.METOFFICE_HOURLY_COORDINATOR = "metoffice_hourly_coordinator"

Definition at line 31 of file const.py.

◆ METOFFICE_MONITORED_CONDITIONS

string homeassistant.components.metoffice.const.METOFFICE_MONITORED_CONDITIONS = "metoffice_monitored_conditions"

Definition at line 33 of file const.py.

◆ METOFFICE_NAME

string homeassistant.components.metoffice.const.METOFFICE_NAME = "metoffice_name"

Definition at line 34 of file const.py.

◆ MODE_3HOURLY

string homeassistant.components.metoffice.const.MODE_3HOURLY = "3hourly"

Definition at line 36 of file const.py.

◆ MODE_DAILY

string homeassistant.components.metoffice.const.MODE_DAILY = "daily"

Definition at line 37 of file const.py.

◆ VISIBILITY_CLASSES

dictionary homeassistant.components.metoffice.const.VISIBILITY_CLASSES
Initial value:
1 = {
2  "VP": "Very Poor",
3  "PO": "Poor",
4  "MO": "Moderate",
5  "GO": "Good",
6  "VG": "Very Good",
7  "EX": "Excellent",
8 }

Definition at line 62 of file const.py.

◆ VISIBILITY_DISTANCE_CLASSES

dictionary homeassistant.components.metoffice.const.VISIBILITY_DISTANCE_CLASSES
Initial value:
1 = {
2  "VP": "<1",
3  "PO": "1-4",
4  "MO": "4-10",
5  "GO": "10-20",
6  "VG": "20-40",
7  "EX": ">40",
8 }

Definition at line 71 of file const.py.