mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Add firmware
This commit is contained in:
parent
140597c7f8
commit
3235d33463
@ -43,11 +43,13 @@ class HaDeviceCard extends EventsMixin(PolymerElement) {
|
|||||||
.device .manuf {
|
.device .manuf {
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
.hub-info {
|
.extra-info {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
paper-icon-item {
|
paper-icon-item {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 4px;
|
||||||
}
|
}
|
||||||
.manuf,
|
.manuf,
|
||||||
.entity-id {
|
.entity-id {
|
||||||
@ -62,11 +64,16 @@ class HaDeviceCard extends EventsMixin(PolymerElement) {
|
|||||||
<div class='manuf'>by [[device.manufacturer]]</div>
|
<div class='manuf'>by [[device.manufacturer]]</div>
|
||||||
</div>
|
</div>
|
||||||
<template is='dom-if' if='[[device.hub_device_id]]'>
|
<template is='dom-if' if='[[device.hub_device_id]]'>
|
||||||
<div class='hub-info'>
|
<div class='extra-info'>
|
||||||
Connected via
|
Connected via
|
||||||
<span class='hub'>[[_computeDeviceName(devices, device.hub_device_id)]]</span>
|
<span class='hub'>[[_computeDeviceName(devices, device.hub_device_id)]]</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template is='dom-if' if='[[device.sw_version]]'>
|
||||||
|
<div class='extra-info'>
|
||||||
|
Firmware: [[device.sw_version]]
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template is='dom-repeat' items='[[_computeDeviceEntities(hass, device, entities)]]' as='entity'>
|
<template is='dom-repeat' items='[[_computeDeviceEntities(hass, device, entities)]]' as='entity'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user