Closed TheFes closed 11 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (weather
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
weather documentation weather source (message by IssueLinks)
Core and frontend teams discussed this in a meeting today. We want to still raise an exception as soon as any entity does not support the service call.
We think it's better to notify the user clearly that something in the service call is not correct and what that is, than to return an empty list for an entity, which isn't clear why that happened.
Thanks for the feedback 👍🏼
The problem
The new
weather.get_forecasts
service call throws an error if you use it on an entity which doesn't support the specific type. This is the same behavior as theweather.get_forecast
service call had, but as you can now ask for multiple entities, it will not give a result for any of the entities if one of the entities is unavailable for some reason.It would be much better if there would be an empty list in case the type is not supported. This will make it possible to handle the response for all entities the same.
So example response
What version of Home Assistant Core has the issue?
2023.12.0b1
What was the last working version of Home Assistant Core?
NA
What type of installation are you running?
Home Assistant OS
Integration causing the issue
weather
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/weather
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response