diff --git a/src/dialogs/more-info/controls/more-info-climate.ts b/src/dialogs/more-info/controls/more-info-climate.ts index fd5769fba0..05323b45c8 100644 --- a/src/dialogs/more-info/controls/more-info-climate.ts +++ b/src/dialogs/more-info/controls/more-info-climate.ts @@ -15,14 +15,8 @@ import { nothing, } from "lit"; import { property, state } from "lit/decorators"; -import { classMap } from "lit/directives/class-map"; import { fireEvent } from "../../../common/dom/fire_event"; import { stopPropagation } from "../../../common/dom/stop_propagation"; -import { - computeAttributeNameDisplay, - computeAttributeValueDisplay, -} from "../../../common/entity/compute_attribute_display"; -import { computeStateDisplay } from "../../../common/entity/compute_state_display"; import { supportsFeature } from "../../../common/entity/supports-feature"; import { formatNumber } from "../../../common/number/format_number"; import { blankBeforePercent } from "../../../common/translations/blank_before_percent"; @@ -43,11 +37,11 @@ import { computeSwingModeIcon, } from "../../../data/climate"; import { UNAVAILABLE } from "../../../data/entity"; +import { haOscillating } from "../../../data/icons/haOscillating"; import { HomeAssistant } from "../../../types"; import "../components/climate/ha-more-info-climate-humidity"; import "../components/climate/ha-more-info-climate-temperature"; import { moreInfoControlStyle } from "../components/ha-more-info-control-style"; -import { haOscillating } from "../../../data/icons/haOscillating"; type MainControl = "temperature" | "humidity"; @@ -68,14 +62,6 @@ class MoreInfoClimate extends LitElement { const hass = this.hass; const stateObj = this.stateObj; - const supportTargetTemperature = supportsFeature( - stateObj, - ClimateEntityFeature.TARGET_TEMPERATURE - ); - const supportTargetTemperatureRange = supportsFeature( - stateObj, - ClimateEntityFeature.TARGET_TEMPERATURE_RANGE - ); const supportTargetHumidity = supportsFeature( stateObj, ClimateEntityFeature.TARGET_HUMIDITY @@ -92,10 +78,6 @@ class MoreInfoClimate extends LitElement { stateObj, ClimateEntityFeature.SWING_MODE ); - const supportAuxHeat = supportsFeature( - stateObj, - ClimateEntityFeature.AUX_HEAT - ); const currentTemperature = this.stateObj.attributes.current_temperature; const currentHumidity = this.stateObj.attributes.current_humidity; @@ -106,10 +88,8 @@ class MoreInfoClimate extends LitElement { ? html`
- ${computeAttributeNameDisplay( - this.hass.localize, + ${this.hass.formatEntityAttributeName( this.stateObj, - this.hass.entities, "current_temperature" )}
@@ -124,10 +104,8 @@ class MoreInfoClimate extends LitElement { ? html`- ${computeAttributeNameDisplay( - this.hass.localize, + ${this.hass.formatEntityAttributeName( this.stateObj, - this.hass.entities, "current_humidity" )}
@@ -194,7 +172,7 @@ class MoreInfoClimate extends LitElement { .value=${stateObj.state} fixedMenuPosition naturalMenuWidth - @selected=${this._handleOperationmodeChanged} + @selected=${this._handleOperationModeChanged} @closed=${stopPropagation} >