mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 04:16:34 +00:00
* Fixes #12707 Nest climate card contains redundant fields Updated for better value handling Fixed lint * Remove some brackets
This commit is contained in:
parent
1f14373117
commit
e11cca28fd
@ -309,11 +309,11 @@ class MoreInfoClimate extends EventsMixin(PolymerElement) {
|
||||
}
|
||||
|
||||
supportsTemperature(stateObj) {
|
||||
return (stateObj.attributes.supported_features & 1) !== 0;
|
||||
return (stateObj.attributes.supported_features & 1) !== 0 && typeof stateObj.attributes.temperature === 'number';
|
||||
}
|
||||
|
||||
supportsTemperatureRange(stateObj) {
|
||||
return (stateObj.attributes.supported_features & 6) !== 0;
|
||||
return (stateObj.attributes.supported_features & 6) !== 0 && (typeof stateObj.attributes.target_temp_low === 'number' || typeof stateObj.attributes.target_temp_high === 'number');
|
||||
}
|
||||
|
||||
supportsHumidity(stateObj) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user