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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user