mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 06:17:20 +00:00
Hide service toast in the demo (#2942)
* Hide service toast in the demo * Update provide_hass.ts
This commit is contained in:
parent
117ea32586
commit
2d75e797c7
@ -1,4 +1,3 @@
|
||||
import { fireEvent } from "../common/dom/fire_event";
|
||||
import applyThemesOnElement from "../common/dom/apply_themes_on_element";
|
||||
|
||||
import { demoConfig } from "./demo_config";
|
||||
@ -146,9 +145,6 @@ export const provideHass = (
|
||||
dockedSidebar: false,
|
||||
moreInfoEntityId: null as any,
|
||||
async callService(domain, service, data) {
|
||||
fireEvent(elements[0], "hass-notification", {
|
||||
message: `Called service ${domain}/${service}`,
|
||||
});
|
||||
if (data && "entity_id" in data) {
|
||||
await Promise.all(
|
||||
ensureArray(data.entity_id).map((ent) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user