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

Classes

class  ExtraForecast
 
class  NWSWeather
 

Functions

str _calculate_unique_id (MappingProxyType[str, Any] entry_data, str mode)
 
None async_setup_entry (HomeAssistant hass, NWSConfigEntry entry, AddEntitiesCallback async_add_entities)
 
str convert_condition (str time, tuple[tuple[str, int|None],...] weather)
 

Variables

int PARALLEL_UPDATES = 0
 

Detailed Description

Support for NWS weather service.

Function Documentation

◆ _calculate_unique_id()

str homeassistant.components.nws.weather._calculate_unique_id ( MappingProxyType[str, Any]  entry_data,
str  mode 
)
private
Calculate unique ID.

Definition at line 127 of file weather.py.

◆ async_setup_entry()

None homeassistant.components.nws.weather.async_setup_entry ( HomeAssistant  hass,
NWSConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the NWS weather platform.

Definition at line 89 of file weather.py.

◆ convert_condition()

str homeassistant.components.nws.weather.convert_condition ( str  time,
tuple[tuple[str, int | None], ...]  weather 
)
Convert NWS codes to HA condition.

Choose first condition in CONDITION_CLASSES that exists in weather code.
If no match is found, return first condition from NWS

Definition at line 63 of file weather.py.

Variable Documentation

◆ PARALLEL_UPDATES

int homeassistant.components.nws.weather.PARALLEL_UPDATES = 0

Definition at line 60 of file weather.py.