Hide service toast in the demo (#2942)

* Hide service toast in the demo

* Update provide_hass.ts
This commit is contained in:
Paulus Schoutsen 2019-03-15 23:10:50 -07:00 committed by GitHub
parent 117ea32586
commit 2d75e797c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) =>