Classes | |
| class | ECWeather |
Functions | |
| str | _calculate_unique_id (str|None config_entry_unique_id, bool hourly) |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
| list[Forecast]|None | get_forecast (ec_data, hourly) |
| def | icon_code_to_condition (icon_code) |
Variables | |
| dictionary | ICON_CONDITION_MAP |
Platform for retrieving meteorological data from Environment Canada.
|
private |
Calculate unique ID.
Definition at line 82 of file weather.py.
| None homeassistant.components.environment_canada.weather.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Add a weather entity from a config_entry.
Definition at line 62 of file weather.py.
| list[Forecast] | None homeassistant.components.environment_canada.weather.get_forecast | ( | ec_data, | |
| hourly | |||
| ) |
Build the forecast array.
Definition at line 187 of file weather.py.
| def homeassistant.components.environment_canada.weather.icon_code_to_condition | ( | icon_code | ) |
Return the condition corresponding to an icon code.
Definition at line 232 of file weather.py.
| dictionary homeassistant.components.environment_canada.weather.ICON_CONDITION_MAP |
Definition at line 46 of file weather.py.