mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 13:07:49 +00:00
fix import
This commit is contained in:
parent
82189ab3c6
commit
7c21a07a66
@ -1 +1,41 @@
|
||||
export const UNAVAILABLE = "unavailable";
|
||||
|
||||
export const ENTITY_COMPONENT_DOMAINS = [
|
||||
"air_quality",
|
||||
"alarm_control_panel",
|
||||
"automation",
|
||||
"binary_sensor",
|
||||
"calendar",
|
||||
"counter",
|
||||
"cover",
|
||||
"dominos",
|
||||
"fan",
|
||||
"geo_location",
|
||||
"group",
|
||||
"history_graph",
|
||||
"image_processing",
|
||||
"input_boolean",
|
||||
"input_datetime",
|
||||
"input_number",
|
||||
"input_select",
|
||||
"input_text",
|
||||
"light",
|
||||
"lock",
|
||||
"mailbox",
|
||||
"media_player",
|
||||
"person",
|
||||
"plant",
|
||||
"remember_the_milk",
|
||||
"remote",
|
||||
"scene",
|
||||
"script",
|
||||
"sensor",
|
||||
"switch",
|
||||
"timer",
|
||||
"utility_meter",
|
||||
"vacuum",
|
||||
"weather",
|
||||
"wink",
|
||||
"zha",
|
||||
"zwave",
|
||||
];
|
||||
|
@ -6,6 +6,7 @@ import "@polymer/paper-input/paper-textarea";
|
||||
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
||||
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
||||
|
||||
import { ENTITY_COMPONENT_DOMAINS } from "../../data/entity";
|
||||
import "../../components/entity/ha-entity-picker";
|
||||
import "../../components/ha-menu-button";
|
||||
import "../../components/ha-service-picker";
|
||||
@ -293,7 +294,7 @@ class HaPanelDevService extends PolymerElement {
|
||||
}
|
||||
|
||||
_computeEntityDomainFilter(domain) {
|
||||
return domain === "homeassistant" ? null : domain;
|
||||
return ENTITY_COMPONENT_DOMAINS.includes(domain) ? domain : null;
|
||||
}
|
||||
|
||||
_callService() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user