mirror of
https://github.com/beestat/app.git
synced 2025-06-05 06:37:24 -04:00
Removed address from comparison settings
This commit is contained in:
parent
5413d9b9e7
commit
580bbfd93b
@ -337,28 +337,6 @@ beestat.component.card.comparison_settings.prototype.get_title_ = function() {
|
|||||||
return 'Comparison Settings';
|
return 'Comparison Settings';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the subtitle of the card.
|
|
||||||
*
|
|
||||||
* @return {string} The subtitle of the card.
|
|
||||||
*/
|
|
||||||
beestat.component.card.comparison_settings.prototype.get_subtitle_ = function() {
|
|
||||||
const thermostat = beestat.cache.thermostat[this.thermostat_id_];
|
|
||||||
const address = beestat.cache.address[thermostat.address_id];
|
|
||||||
|
|
||||||
let string = 'Thermostat at ';
|
|
||||||
|
|
||||||
if (address.normalized !== null && address.normalized.delivery_line_1 !== undefined) {
|
|
||||||
string += address.normalized.delivery_line_1;
|
|
||||||
} else if (address.normalized !== null && address.normalized.address1 !== undefined) {
|
|
||||||
string += address.normalized.address1;
|
|
||||||
} else {
|
|
||||||
string += 'unknown address';
|
|
||||||
}
|
|
||||||
|
|
||||||
return string;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decorate the menu.
|
* Decorate the menu.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user