appdaemon icon indicating copy to clipboard operation
appdaemon copied to clipboard

get_history failing due to API error

Open geckom opened this issue 1 year ago • 1 comments

What happened?

self.get_history(days=1) results in the following error: WARNING HASS: Code: 400, error: {"message":"filter_entity_id is missing"}

According to https://developers.home-assistant.io/docs/api/rest/#get-apihistoryperiodlttimestamp it would seem that filter_entity_id is now a required field.

Version

4.4.2

Installation type

Python virtual environment

Relevant log output

2023-05-20 19:39:13.628054 WARNING HASS: Error calling Home Assistant to get_history
2023-05-20 19:39:13.628378 WARNING HASS: Code: 400, error: {"message":"filter_entity_id is missing"}

Relevant code in the app or config file that caused the issue

self.get_history(days=1)

Anything else?

No response

geckom avatar May 20 '23 09:05 geckom

@geckom,

Yes it’s now required, will try and get that fixed.

Odianosen25 avatar Jun 29 '23 05:06 Odianosen25