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

Classes

class  MetWeather
 

Functions

str _calculate_unique_id (MappingProxyType[str, Any] config, bool hourly)
 
None async_setup_entry (HomeAssistant hass, MetWeatherConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
str format_condition (str condition)
 

Variables

string DEFAULT_NAME = "Met.no"
 

Detailed Description

Support for Met.no weather service.

Function Documentation

◆ _calculate_unique_id()

str homeassistant.components.met.weather._calculate_unique_id ( MappingProxyType[str, Any]  config,
bool  hourly 
)
private
Calculate unique ID.

Definition at line 86 of file weather.py.

◆ async_setup_entry()

None homeassistant.components.met.weather.async_setup_entry ( HomeAssistant  hass,
MetWeatherConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Add a weather entity from a config_entry.

Definition at line 55 of file weather.py.

◆ format_condition()

str homeassistant.components.met.weather.format_condition ( str  condition)
Return condition from dict CONDITIONS_MAP.

Definition at line 97 of file weather.py.

Variable Documentation

◆ DEFAULT_NAME

string homeassistant.components.met.weather.DEFAULT_NAME = "Met.no"

Definition at line 52 of file weather.py.