mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Default energy collection key should not be defined (#9710)
This commit is contained in:
parent
3485296e23
commit
028b799d2c
@ -12,7 +12,7 @@ import { ConfigEntry, getConfigEntries } from "./config_entries";
|
||||
import { subscribeEntityRegistry } from "./entity_registry";
|
||||
import { fetchStatistics, Statistics } from "./history";
|
||||
|
||||
const energyCollectionKeys: string[] = [];
|
||||
const energyCollectionKeys: (string | undefined)[] = [];
|
||||
|
||||
export const emptyFlowFromGridSourceEnergyPreference =
|
||||
(): FlowFromGridSourceEnergyPreference => ({
|
||||
@ -278,7 +278,7 @@ export const getEnergyDataCollection = (
|
||||
return (hass.connection as any)[key];
|
||||
}
|
||||
|
||||
energyCollectionKeys.push(options.key || "energy");
|
||||
energyCollectionKeys.push(options.key);
|
||||
|
||||
const collection = getCollection<EnergyData>(
|
||||
hass.connection,
|
||||
|
Loading…
x
Reference in New Issue
Block a user