fix showing edit entity icon in more info dialog (#3066)

* fix showing cog

* Remove unused value

* Lint
This commit is contained in:
Paulus Schoutsen
2019-04-07 12:17:06 -07:00
committed by GitHub
parent 70072786a1
commit 559164e159
2 changed files with 1 additions and 11 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
);
if (
!isComponentLoaded(this.hass, "config.entity_registry") ||
!isComponentLoaded(this.hass, "config") ||
(oldVal && oldVal.entity_id === newVal.entity_id)
) {
return;
@@ -10,7 +10,6 @@ import LocalizeMixin from "../../mixins/localize-mixin";
import computeStateName from "../../common/entity/compute_state_name";
import computeDomain from "../../common/entity/compute_domain";
import isComponentLoaded from "../../common/config/is_component_loaded";
import { updateEntityRegistryEntry } from "../../data/entity_registry";
import "../../components/ha-paper-icon-button-arrow-prev";
@@ -74,11 +73,6 @@ class MoreInfoSettings extends LocalizeMixin(EventsMixin(PolymerElement)) {
hass: Object,
stateObj: Object,
_componentLoaded: {
type: Boolean,
computed: "_computeComponentLoaded(hass)",
},
registryInfo: {
type: Object,
observer: "_registryInfoChanged",
@@ -95,10 +89,6 @@ class MoreInfoSettings extends LocalizeMixin(EventsMixin(PolymerElement)) {
return computeStateName(stateObj);
}
_computeComponentLoaded(hass) {
return isComponentLoaded(hass, "config.entity_registry");
}
_computeInvalid(entityId) {
return computeDomain(this.stateObj.entity_id) !== computeDomain(entityId);
}