mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Change OG back
This commit is contained in:
parent
8b81174395
commit
1c3fd73738
@ -18,7 +18,6 @@ export class OriginalStatesStrategy {
|
|||||||
info: Parameters<LovelaceViewStrategy["generateView"]>[0]
|
info: Parameters<LovelaceViewStrategy["generateView"]>[0]
|
||||||
): ReturnType<LovelaceViewStrategy["generateView"]> {
|
): ReturnType<LovelaceViewStrategy["generateView"]> {
|
||||||
const hass = info.hass;
|
const hass = info.hass;
|
||||||
const areaId = info.view.strategy?.options?.areaId;
|
|
||||||
|
|
||||||
if (hass.config.state === STATE_NOT_RUNNING) {
|
if (hass.config.state === STATE_NOT_RUNNING) {
|
||||||
return {
|
return {
|
||||||
@ -67,9 +66,7 @@ export class OriginalStatesStrategy {
|
|||||||
// User can override default view. If they didn't, we will add one
|
// User can override default view. If they didn't, we will add one
|
||||||
// that contains all entities.
|
// that contains all entities.
|
||||||
const view = generateDefaultViewConfig(
|
const view = generateDefaultViewConfig(
|
||||||
!areaId
|
areaEntries,
|
||||||
? areaEntries
|
|
||||||
: areaEntries.filter((area) => area.area_id === areaId),
|
|
||||||
deviceEntries,
|
deviceEntries,
|
||||||
entityEntries,
|
entityEntries,
|
||||||
hass.states,
|
hass.states,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user