Skip to content

Commit c97c20f

Browse files
authored
Add mock area registry to demo to fix card picker (home-assistant#20626)
1 parent 2725d01 commit c97c20f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demo/src/ha-demo.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { HomeAssistantAppEl } from "../../src/layouts/home-assistant";
1111
import { HomeAssistant } from "../../src/types";
1212
import { selectedDemoConfig } from "./configs/demo-configs";
13+
import { mockAreaRegistry } from "./stubs/area_registry";
1314
import { mockAuth } from "./stubs/auth";
1415
import { mockConfigEntries } from "./stubs/config_entries";
1516
import { mockEnergy } from "./stubs/energy";
@@ -23,10 +24,10 @@ import { mockLovelace } from "./stubs/lovelace";
2324
import { mockMediaPlayer } from "./stubs/media_player";
2425
import { mockPersistentNotification } from "./stubs/persistent_notification";
2526
import { mockRecorder } from "./stubs/recorder";
26-
import { mockTodo } from "./stubs/todo";
2727
import { mockSensor } from "./stubs/sensor";
2828
import { mockSystemLog } from "./stubs/system_log";
2929
import { mockTemplate } from "./stubs/template";
30+
import { mockTodo } from "./stubs/todo";
3031
import { mockTranslations } from "./stubs/translations";
3132

3233
@customElement("ha-demo")
@@ -62,6 +63,7 @@ export class HaDemo extends HomeAssistantAppEl {
6263
mockEnergy(hass);
6364
mockPersistentNotification(hass);
6465
mockConfigEntries(hass);
66+
mockAreaRegistry(hass);
6567
mockEntityRegistry(hass, [
6668
{
6769
config_entry_id: "co2signal",

0 commit comments

Comments
 (0)