mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 04:20:28 +00:00
Compare commits
3 Commits
add-automa
...
renovate/n
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6776336af | ||
|
|
41fbc5e44b | ||
|
|
3fea41eb0e |
@@ -237,6 +237,6 @@
|
|||||||
},
|
},
|
||||||
"packageManager": "yarn@4.10.3",
|
"packageManager": "yarn@4.10.3",
|
||||||
"volta": {
|
"volta": {
|
||||||
"node": "22.21.1"
|
"node": "24.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -426,6 +426,10 @@ class DialogZHAReconfigureDevice extends LitElement {
|
|||||||
return [
|
return [
|
||||||
haStyleDialog,
|
haStyleDialog,
|
||||||
css`
|
css`
|
||||||
|
ha-dialog {
|
||||||
|
--mdc-dialog-max-width: 800px;
|
||||||
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 3fr 1fr 2fr;
|
grid-template-columns: 3fr 1fr 2fr;
|
||||||
|
|||||||
@@ -168,6 +168,27 @@ export class HomeAreaViewStrategy extends ReactiveElement {
|
|||||||
|
|
||||||
const summaryEntities = Object.values(entitiesBySummary).flat();
|
const summaryEntities = Object.values(entitiesBySummary).flat();
|
||||||
|
|
||||||
|
// Scenes section
|
||||||
|
const sceneFilter = generateEntityFilter(hass, {
|
||||||
|
domain: "scene",
|
||||||
|
entity_category: "none",
|
||||||
|
});
|
||||||
|
const scenes = areaEntities.filter(sceneFilter);
|
||||||
|
|
||||||
|
if (scenes.length > 0) {
|
||||||
|
sections.push({
|
||||||
|
type: "grid",
|
||||||
|
cards: [
|
||||||
|
computeHeadingCard(
|
||||||
|
hass.localize("ui.panel.lovelace.strategy.home.scenes"),
|
||||||
|
"mdi:palette",
|
||||||
|
"/config/scene/dashboard"
|
||||||
|
),
|
||||||
|
...scenes.map(computeTileCard),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Automations section
|
// Automations section
|
||||||
const automationFilter = generateEntityFilter(hass, {
|
const automationFilter = generateEntityFilter(hass, {
|
||||||
domain: "automation",
|
domain: "automation",
|
||||||
@@ -178,7 +199,9 @@ export class HomeAreaViewStrategy extends ReactiveElement {
|
|||||||
// Rest of entities grouped by device
|
// Rest of entities grouped by device
|
||||||
const otherEntities = areaEntities.filter(
|
const otherEntities = areaEntities.filter(
|
||||||
(entityId) =>
|
(entityId) =>
|
||||||
!summaryEntities.includes(entityId) && !automations.includes(entityId)
|
!summaryEntities.includes(entityId) &&
|
||||||
|
!scenes.includes(entityId) &&
|
||||||
|
!automations.includes(entityId)
|
||||||
);
|
);
|
||||||
|
|
||||||
const entitiesByDevice: Record<string, string[]> = {};
|
const entitiesByDevice: Record<string, string[]> = {};
|
||||||
|
|||||||
@@ -6983,6 +6983,7 @@
|
|||||||
"other_areas": "Other areas",
|
"other_areas": "Other areas",
|
||||||
"unamed_device": "Unnamed device",
|
"unamed_device": "Unnamed device",
|
||||||
"others": "Others",
|
"others": "Others",
|
||||||
|
"scenes": "Scenes",
|
||||||
"automations": "Automations"
|
"automations": "Automations"
|
||||||
},
|
},
|
||||||
"common_controls": {
|
"common_controls": {
|
||||||
|
|||||||
Reference in New Issue
Block a user