Add service for getting a weather forecast (#97078)

* Add service for getting a weather forecast

* Fix translations

* Improve service description

* Improve error handling

* Adjust typing

* Adjust typing

* Adjust service response format
This commit is contained in:
Erik Montnemery
2023-08-07 14:05:37 +02:00
committed by GitHub
parent 0a2ff3a676
commit 683c2f8d22
6 changed files with 229 additions and 6 deletions

View File

@@ -100,6 +100,7 @@ def _entity_features() -> dict[str, type[IntFlag]]:
from homeassistant.components.update import UpdateEntityFeature
from homeassistant.components.vacuum import VacuumEntityFeature
from homeassistant.components.water_heater import WaterHeaterEntityFeature
from homeassistant.components.weather import WeatherEntityFeature
return {
"AlarmControlPanelEntityFeature": AlarmControlPanelEntityFeature,
@@ -117,6 +118,7 @@ def _entity_features() -> dict[str, type[IntFlag]]:
"UpdateEntityFeature": UpdateEntityFeature,
"VacuumEntityFeature": VacuumEntityFeature,
"WaterHeaterEntityFeature": WaterHeaterEntityFeature,
"WeatherEntityFeature": WeatherEntityFeature,
}