Skip to content

Commit

Permalink
fix: Home Assistant API deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Nov 4, 2022
1 parent eebc6b8 commit 1449c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export default class GraphEntry {
period: StatisticsPeriod = DEFAULT_STATISTICS_PERIOD,
): Promise<StatisticValue[] | undefined> {
const statistics = await this._hass?.callWS<Statistics>({
type: 'history/statistics_during_period',
type: 'recorder/statistics_during_period',
start_time: start?.toISOString(),
end_time: end?.toISOString(),
statistic_ids: [this._entityID],
Expand Down

0 comments on commit 1449c7f

Please sign in to comment.