Open jpearce73 opened 6 months ago
We now have this working in the dev branch
Is a release planned for the "near future" or should we use the dev branch in the meantime? Thank you for your work either way!
It will be a few weeks yet but not a lot longer, use the dev branch if you really need it and are feeling brave! The changes in the current dev work well for returning results and the docs are all there but we are planning a rewrite of parts of it and in particular startup conditions are broken.
@acockburn Any news on when the new version will be available?
Sorry for the delay - I got busy in real life - I hope to have some time to finalize this over the Holidays.
What happened?
Cannot call a service from AppDaemon when response data is wanted. Service call fails when either method is used.
self.temp_forecast_entity = self.get_entity('weather.ksjc_daynight') response=self.temp_forecast_entity.call_service(service='get_forecasts', type='hourly', return_response=True)
orresponse=self.call_service('weather/get_forecasts', entity_id = 'weather.forecast_home', type = 'hourly', return_response=True)
Full write up has been posted on the forum https://community.home-assistant.io/t/cant-call-service-that-returns-response/730859/7
Version
0.16.4
Installation type
Home Assistant add-on
Relevant log output
Relevant code in the app or config file that caused the issue
Anything else?
I've tried two different service calls on different integrations I've also confirmed in the HA developer pane, the services work and return data. My suspicion is that the "return_response=True" portion of the service call is getting lost though the API.