mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
20251203.2 (#28443)
This commit is contained in:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "home-assistant-frontend"
|
||||
version = "20251203.1"
|
||||
version = "20251203.2"
|
||||
license = "Apache-2.0"
|
||||
license-files = ["LICENSE*"]
|
||||
description = "The Home Assistant frontend"
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -220,12 +220,12 @@ const tryDescribeAction = <T extends ActionType>(
|
||||
if (config.action) {
|
||||
const [domain, serviceName] = config.action.split(".", 2);
|
||||
const descriptionPlaceholders =
|
||||
hass.services[domain][serviceName].description_placeholders;
|
||||
hass.services[domain]?.[serviceName]?.description_placeholders;
|
||||
const service =
|
||||
hass.localize(
|
||||
`component.${domain}.services.${serviceName}.name`,
|
||||
descriptionPlaceholders
|
||||
) || hass.services[domain][serviceName]?.name;
|
||||
) || hass.services[domain]?.[serviceName]?.name;
|
||||
|
||||
if (config.metadata) {
|
||||
return hass.localize(
|
||||
|
||||
@@ -97,9 +97,9 @@ export default class HaAutomationSidebarAction extends LitElement {
|
||||
title = `${domainToName(this.hass.localize, domain)}: ${
|
||||
this.hass.localize(
|
||||
`component.${domain}.services.${service}.name`,
|
||||
this.hass.services[domain][service].description_placeholders
|
||||
this.hass.services[domain]?.[service]?.description_placeholders
|
||||
) ||
|
||||
this.hass.services[domain][service]?.name ||
|
||||
this.hass.services[domain]?.[service]?.name ||
|
||||
title
|
||||
}`;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,9 @@ export class EnergyOverviewViewStrategy extends ReactiveElement {
|
||||
const energyCollection = getEnergyDataCollection(hass, {
|
||||
key: collectionKey,
|
||||
});
|
||||
if (!energyCollection.prefs) {
|
||||
await energyCollection.refresh();
|
||||
}
|
||||
const prefs = energyCollection.prefs;
|
||||
|
||||
// No energy sources available
|
||||
|
||||
@@ -21,6 +21,9 @@ export class EnergyViewStrategy extends ReactiveElement {
|
||||
const energyCollection = getEnergyDataCollection(hass, {
|
||||
key: collectionKey,
|
||||
});
|
||||
if (!energyCollection.prefs) {
|
||||
await energyCollection.refresh();
|
||||
}
|
||||
const prefs = energyCollection.prefs;
|
||||
|
||||
// No energy sources available
|
||||
|
||||
@@ -24,6 +24,9 @@ export class GasViewStrategy extends ReactiveElement {
|
||||
const energyCollection = getEnergyDataCollection(hass, {
|
||||
key: collectionKey,
|
||||
});
|
||||
if (!energyCollection.prefs) {
|
||||
await energyCollection.refresh();
|
||||
}
|
||||
const prefs = energyCollection.prefs;
|
||||
|
||||
const hasGasSources = prefs?.energy_sources.some(
|
||||
|
||||
@@ -24,6 +24,9 @@ export class WaterViewStrategy extends ReactiveElement {
|
||||
const energyCollection = getEnergyDataCollection(hass, {
|
||||
key: collectionKey,
|
||||
});
|
||||
if (!energyCollection.prefs) {
|
||||
await energyCollection.refresh();
|
||||
}
|
||||
const prefs = energyCollection.prefs;
|
||||
|
||||
const hasWaterSources = prefs?.energy_sources.some(
|
||||
|
||||
Reference in New Issue
Block a user