🔨Migrate to Climate 1.0
This commit is contained in:
		
							parent
							
								
									f86b2db6a4
								
							
						
					
					
						commit
						d59d4f3f88
					
				| @ -14,13 +14,13 @@ export class ClimateController extends Controller { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   get string() { |   get string() { | ||||||
|     if (this.stateObj.attributes.operation_mode === "off") |     if (this.stateObj.attributes.hvac_mode === "off") | ||||||
|       return this._hass.localize("state.climate.off"); |       return this._hass.localize("state.climate.off"); | ||||||
|     return `${this.value} ${this._hass.config.unit_system.temperature}`; |     return `${this.value} ${this._hass.config.unit_system.temperature}`; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   get isOff() { |   get isOff() { | ||||||
|     return this.stateObj.attributes.operation_mode === "off"; |     return this.stateObj.attributes.hvac_mode === "off"; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   get _min() { |   get _min() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user