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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

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;

View File

@ -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);
}