mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-13 04:50:29 +00:00
More demo stubs (#2529)
* More demo stubs * History stub actually generates mocks * More tweaks * Add more entities
This commit is contained in:
9
demo/src/stubs/template.ts
Normal file
9
demo/src/stubs/template.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { MockHomeAssistant } from "../../../src/fake_data/provide_hass";
|
||||
|
||||
export const mockTemplate = (hass: MockHomeAssistant) => {
|
||||
hass.mockAPI("template", () =>
|
||||
Promise.reject({
|
||||
body: { message: "Template dev tool does not work in the demo." },
|
||||
})
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user