1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Removed address from comparison settings

This commit is contained in:
Jon Ziebell 2021-03-04 20:46:22 -05:00
parent 5413d9b9e7
commit 580bbfd93b

View File

@ -337,28 +337,6 @@ beestat.component.card.comparison_settings.prototype.get_title_ = function() {
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.
*