mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Add azimuth to sun.sun dialog's more-info section (#20036)
This commit is contained in:
parent
d56fe8a542
commit
d4d0fb2a03
@ -70,6 +70,7 @@ export const DOMAIN_ATTRIBUTES_UNITS = {
|
|||||||
brightness: "%",
|
brightness: "%",
|
||||||
},
|
},
|
||||||
sun: {
|
sun: {
|
||||||
|
azimuth: "°",
|
||||||
elevation: "°",
|
elevation: "°",
|
||||||
},
|
},
|
||||||
vacuum: {
|
vacuum: {
|
||||||
|
@ -58,6 +58,14 @@ class MoreInfoSun extends LitElement {
|
|||||||
${this.hass.formatEntityAttributeValue(this.stateObj, "elevation")}
|
${this.hass.formatEntityAttributeValue(this.stateObj, "elevation")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="key">
|
||||||
|
${this.hass.localize("ui.dialogs.more_info_control.sun.azimuth")}
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
${this.hass.formatEntityAttributeValue(this.stateObj, "azimuth")}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1038,6 +1038,7 @@
|
|||||||
"last_triggered": "Last triggered"
|
"last_triggered": "Last triggered"
|
||||||
},
|
},
|
||||||
"sun": {
|
"sun": {
|
||||||
|
"azimuth": "Azimuth",
|
||||||
"elevation": "Elevation",
|
"elevation": "Elevation",
|
||||||
"rising": "Rising",
|
"rising": "Rising",
|
||||||
"setting": "Setting"
|
"setting": "Setting"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user