Remove model name and power profile subtitle from Anker device header
This commit is contained in:
@@ -1226,14 +1226,13 @@ function renderAnker(devices) {
|
|||||||
if (!d.live) {
|
if (!d.live) {
|
||||||
return '<div class="device"><div class="device-head">'
|
return '<div class="device"><div class="device-head">'
|
||||||
+ nameCell(d, 'anker', 'device-name')
|
+ nameCell(d, 'anker', 'device-name')
|
||||||
+ '<span class="device-meta">' + d.model + '</span></div>'
|
+ '</div>'
|
||||||
+ '<p class="empty">No live readings. Live data comes from a running '
|
+ '<p class="empty">No live readings. Live data comes from a running '
|
||||||
+ 'automation.<br>Start one with <b>solixauto service <profile></b>.</p></div>';
|
+ 'automation.<br>Start one with <b>solixauto service <profile></b>.</p></div>';
|
||||||
}
|
}
|
||||||
return '<div class="device">'
|
return '<div class="device">'
|
||||||
+ '<div class="device-head">'
|
+ '<div class="device-head">'
|
||||||
+ nameCell(d, 'anker', 'device-name')
|
+ nameCell(d, 'anker', 'device-name')
|
||||||
+ '<span class="device-meta">' + d.model + ' · ' + (d.profile || '') + '</span>'
|
|
||||||
+ (d.floor_latched ? '<span class="pill unknown">FLOOR LATCHED</span>' : '')
|
+ (d.floor_latched ? '<span class="pill unknown">FLOOR LATCHED</span>' : '')
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '<div class="readouts">'
|
+ '<div class="readouts">'
|
||||||
|
|||||||
Reference in New Issue
Block a user