Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.smhi.weather Namespace Reference

Classes

class  SmhiWeather
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary CONDITION_MAP
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=31)
 
int RETRY_TIMEOUT = 5 * 60
 
int TIMEOUT = 10
 

Detailed Description

Support for the Swedish weather institute weather service.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.smhi.weather.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Add a weather entity from map location.

Definition at line 99 of file weather.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.smhi.weather._LOGGER = logging.getLogger(__name__)
private

Definition at line 67 of file weather.py.

◆ CONDITION_MAP

dictionary homeassistant.components.smhi.weather.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 86 of file weather.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.smhi.weather.MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=31)

Definition at line 96 of file weather.py.

◆ RETRY_TIMEOUT

int homeassistant.components.smhi.weather.RETRY_TIMEOUT = 5 * 60

Definition at line 94 of file weather.py.

◆ TIMEOUT

int homeassistant.components.smhi.weather.TIMEOUT = 10

Definition at line 92 of file weather.py.