Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240327.0 #20210

Merged
merged 151 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
9ef0748
Replace paper-toast with mwc-snackbar (#19579)
silamon Feb 28, 2024
8f67ddf
Add allow changing type of empty views (#19912)
piitaya Feb 28, 2024
a087b4c
Bump ip from 1.1.8 to 1.1.9 (#19915)
dependabot[bot] Feb 29, 2024
bc445a1
Lokalize automation trace area (#19836)
silamon Feb 29, 2024
6b9ca60
Update octokit monorepo to v7 (major) (#19914)
renovate[bot] Feb 29, 2024
d5d45f1
Update dependency open to v10.0.4 (#19918)
renovate[bot] Feb 29, 2024
b6e220a
Update vaadinWebComponents monorepo to v24.3.7 (#19919)
renovate[bot] Feb 29, 2024
2af3400
Fix section editing after disconnect/reconnect (#19917)
piitaya Feb 29, 2024
4f01348
Improve error display in automation/script traces (#19920)
bramkragten Feb 29, 2024
7d8cb5c
Update typescript-eslint monorepo to v7.1.0 (#19922)
renovate[bot] Feb 29, 2024
ec0434c
Update dependency hls.js to v1.5.7 (#19927)
renovate[bot] Mar 1, 2024
5463a27
Add badges support to sections view (#19929)
piitaya Mar 1, 2024
67da851
Use max column count instead of max width for section grid (#19932)
piitaya Mar 1, 2024
3abdffd
Transform helper to warning for edit view type
piitaya Mar 1, 2024
c05824c
Revert "Transform helper to warning for edit view type"
piitaya Mar 1, 2024
329a8c0
Transform helper to warning for edit view type (#19934)
piitaya Mar 1, 2024
3202ea5
Bumped version to 20240301.0
piitaya Mar 1, 2024
39bd07d
Revert "Bumped version to 20240301.0"
piitaya Mar 1, 2024
3d86542
Update octokit monorepo (#19941)
renovate[bot] Mar 2, 2024
94e70f8
Update dependency chart.js to v4.4.2 (#19947)
renovate[bot] Mar 2, 2024
a7867a9
Update babel monorepo to v7.24.0 (#19945)
renovate[bot] Mar 3, 2024
edbe685
Update dependency @types/chromecast-caf-sender to v1.0.9 (#19960)
renovate[bot] Mar 3, 2024
99c2dd9
Update dependency @bundle-stats/plugin-webpack-filter to v4.12.0 (#19…
renovate[bot] Mar 3, 2024
05c1328
Update dependency gulp-merge-json to v2.2.1 (#19942)
renovate[bot] Mar 3, 2024
19d50b9
Support max_devices for energy-devices-detail-graph (#19936)
karwosts Mar 4, 2024
70146a0
Make migration warning alert sticky at the top for views (#19970)
piitaya Mar 4, 2024
8ccc38e
Fix masonry badges not centered (#19972)
piitaya Mar 4, 2024
19a3810
Add sections dashboard to demo dashboard (#19976)
piitaya Mar 4, 2024
b5bb6c6
Expose dialog to custom card helpers (#19969)
piitaya Mar 4, 2024
88ccbcd
Fix badges not saved in view editor (#19971)
piitaya Mar 4, 2024
b9a7a7c
Don't suggest to pick another card for sections (#19977)
piitaya Mar 4, 2024
b99072d
Use icon in area card if there is no image (#19933)
piitaya Mar 4, 2024
50da4bc
Do not reserve space for condition card in grid section (#19973)
piitaya Mar 4, 2024
5523cd6
Fix a bug in energy batteryToGrid calculation (#19958)
karwosts Mar 4, 2024
05e2e30
Update cast launch screen colors (#19754)
jeremynoesen Mar 4, 2024
0c6bf70
Clean generated config for tile in sections (#19974)
piitaya Mar 4, 2024
1b7742e
Change wording from add section to create section (#19978)
piitaya Mar 4, 2024
42aa18a
Use shorter name for dashboard (#19980)
piitaya Mar 4, 2024
8b77024
Add reconfigure config entry (#19794)
gjohansson-ST Mar 4, 2024
64ffa86
Update dependency @octokit/plugin-retry to v7.0.3 (#19962)
renovate[bot] Mar 4, 2024
acc229a
Bump actions/cache from 4.0.0 to 4.0.1 (#19966)
dependabot[bot] Mar 4, 2024
7ab2d14
Run script in script editor open more info if fields (#19982)
balloob Mar 4, 2024
6f6202e
Fix margin on browse media button (#19979)
piitaya Mar 5, 2024
b03f483
Update dependency eslint-config-airbnb-typescript to v18 (#19986)
renovate[bot] Mar 5, 2024
bf02891
Add clickForMoreInfo to statistics graph card (#19178)
mib1185 Mar 5, 2024
32e8d20
Set grid gap to 32px (#19990)
piitaya Mar 5, 2024
d951e68
Patch HLS light module (#19993)
bramkragten Mar 5, 2024
8ca5b75
Add section max width variable to section view (#19995)
piitaya Mar 5, 2024
a5bcf87
Add description to sections demo (#19991)
piitaya Mar 6, 2024
00669ac
Sections RTL fixes (#20007)
yosilevy Mar 7, 2024
b593b15
Add layout options to cards and improve grid and sections defaults (#…
piitaya Mar 7, 2024
b55baef
Fix visibility save in dashboard edit (#20013)
silamon Mar 7, 2024
52c8554
Fix removal of badges after yaml dashboard change (#20012)
silamon Mar 7, 2024
3b885dd
Fix width of create section button (#20015)
piitaya Mar 7, 2024
233c969
Block moving card to a section view or a strategy view (#20016)
piitaya Mar 7, 2024
c132e7e
Update dependency xss to v1.0.15 (#20000)
renovate[bot] Mar 8, 2024
98bb726
Update dependency magic-string to v0.30.8 (#20003)
renovate[bot] Mar 8, 2024
c699e26
Update typescript-eslint monorepo to v7.1.1 (#20019)
renovate[bot] Mar 8, 2024
3732998
Update Yarn to v4.1.1 (#20020)
renovate[bot] Mar 8, 2024
cc0fde2
Update CodeMirror (#19953)
renovate[bot] Mar 8, 2024
b24621d
Update dependency typescript to v5.4.2 (#20035)
renovate[bot] Mar 10, 2024
6b939b9
Update dependency @codemirror/view to v6.25.1 (#20032)
renovate[bot] Mar 10, 2024
cea402e
Update dependency marked to v12.0.1 (#20031)
renovate[bot] Mar 10, 2024
9e81055
Bump softprops/action-gh-release from 0.1.15 to 2.0.2 (#20048)
dependabot[bot] Mar 11, 2024
90ca039
Update dependency open to v10.1.0 (#20059)
renovate[bot] Mar 12, 2024
52fc854
Update dependency @babel/helper-define-polyfill-provider to v0.6.0 (#…
renovate[bot] Mar 12, 2024
2927019
Update vaadinWebComponents monorepo to v24.3.8 (#20054)
renovate[bot] Mar 12, 2024
d56fe8a
Update simple-tooltip to 8.0.2 with RTL fix (remove patch) (#20039)
yosilevy Mar 12, 2024
d4d0fb2
Add azimuth to sun.sun dialog's more-info section (#20036)
mattmattmatt Mar 12, 2024
279eeaa
Add swing modes card feature (#19999)
mukaschultze Mar 12, 2024
4ab0047
RTL fixes for state info (#20056)
yosilevy Mar 13, 2024
91d3fb0
Update dependency date-fns-tz to v2.0.1 (#20075)
renovate[bot] Mar 13, 2024
7facc37
Avoid starting config flow and show alert dialog early if single conf…
jpbede Mar 13, 2024
adc89f1
Fix spelling mistake of Changelog in About (#20044)
KlaraJa Mar 13, 2024
56a23c5
Small reorganization of profile settings (#20076)
karwosts Mar 14, 2024
31797c5
Add map strategy (#20067)
piitaya Mar 14, 2024
fa6d8d0
Bump Python version to 3.12 (#20084)
silamon Mar 14, 2024
097cba5
Use the entityId in the legacy shopping cart (#20083)
silamon Mar 15, 2024
b3718b8
Fix broken state_color in Entities card (#20077)
silamon Mar 15, 2024
1e8d353
Update typescript-eslint monorepo to v7.2.0 (#20085)
renovate[bot] Mar 15, 2024
488602e
Update dependency superstruct to v1.0.4 (#20082)
renovate[bot] Mar 15, 2024
520a0b4
Bump follow-redirects from 1.15.3 to 1.15.6 (#20086)
dependabot[bot] Mar 15, 2024
293f89a
Update dependency @codemirror/autocomplete to v6.14.0 (#20078)
renovate[bot] Mar 15, 2024
0406d21
Update dependency @lokalise/node-api to v12.2.1 (#20102)
renovate[bot] Mar 17, 2024
6fd89f8
Update dependency @bundle-stats/plugin-webpack-filter to v4.12.1 (#20…
renovate[bot] Mar 17, 2024
b212b30
Update dependency @babel/helper-define-polyfill-provider to v0.6.1 (#…
renovate[bot] Mar 17, 2024
3b15b78
Update dependency webpack-dev-server to v5.0.3 (#20095)
renovate[bot] Mar 17, 2024
2fdcd40
Update CodeMirror (#20105)
renovate[bot] Mar 17, 2024
7aa92ec
Bump actions/checkout from 4.1.1 to 4.1.2 (#20114)
dependabot[bot] Mar 18, 2024
9e3dfaa
Bump softprops/action-gh-release from 2.0.2 to 2.0.4 (#20115)
dependabot[bot] Mar 18, 2024
d5de435
Fix html5 notification toggle (#20028)
alexyao2015 Mar 18, 2024
707520c
Themed graph color support for energy devices graphs (#19998)
karwosts Mar 18, 2024
1582aae
Update vaadinWebComponents monorepo to v24.3.9 (#20120)
renovate[bot] Mar 18, 2024
c9deef8
Lock file maintenance (#20132)
renovate[bot] Mar 19, 2024
a9793dc
Remove border radius in panel view (#20122)
piitaya Mar 19, 2024
8a4ed12
Add option to remove cloud data (#20055)
bramkragten Mar 19, 2024
cbc150b
Fix hidden entity filter card in section (#20117)
piitaya Mar 19, 2024
552eeed
`conditional` & `entity-filter`: add ability to filter through `entit…
Quentame Mar 19, 2024
b658748
Center title in zha pairing page (#20142)
piitaya Mar 20, 2024
7e1fa0c
Fix drag and drop when switching views (#20143)
piitaya Mar 20, 2024
c30b9cd
Change gender to voice for cloud tts settings (#20057)
bramkragten Mar 20, 2024
90e9f79
Add iframe strategy (#20068)
piitaya Mar 21, 2024
9907ed5
Update typescript-eslint monorepo to v7.3.0 (#20151)
renovate[bot] Mar 22, 2024
12f1051
Bump webpack-dev-middleware from 7.0.0 to 7.1.1 (#20152)
dependabot[bot] Mar 22, 2024
027eccb
Update typescript-eslint monorepo to v7.3.1 (#20155)
renovate[bot] Mar 22, 2024
a5e6b78
Update dependency @braintree/sanitize-url to v7.0.1 (#20154)
renovate[bot] Mar 22, 2024
8201701
Update dependency core-js to v3.36.1 (#20156)
renovate[bot] Mar 22, 2024
e4bd6c8
Update babel monorepo to v7.24.1 (#20158)
renovate[bot] Mar 22, 2024
e2f2a93
Update dependency transform-async-modules-webpack-plugin to v1.0.3 (#…
renovate[bot] Mar 22, 2024
b77839c
Update dependency @lokalise/node-api to v12.3.0 (#20162)
renovate[bot] Mar 22, 2024
c1a7164
Update dependency webpack-dev-server to v5.0.4 (#20165)
renovate[bot] Mar 23, 2024
6f7c071
Update dependency typescript to v5.4.3 (#20174)
renovate[bot] Mar 23, 2024
b2b590c
Update babel monorepo to v7.24.3 (#20169)
renovate[bot] Mar 23, 2024
68a5ba6
Update dependency webpack to v5.91.0 (#20172)
renovate[bot] Mar 24, 2024
94d5636
Split profile page (#20103)
karwosts Mar 25, 2024
869ace7
Allow commas in state of history download (#20088)
potelux Mar 25, 2024
9e1e20b
Bump actions/cache from 4.0.1 to 4.0.2 (#20179)
dependabot[bot] Mar 25, 2024
01efb83
Update dependency tar to v6.2.1 (#20178)
renovate[bot] Mar 25, 2024
6ee2bfe
Add theme variables for grid section and sections view (#20099)
piitaya Mar 25, 2024
10cc3bd
Fix header on take control dialog (#20123)
piitaya Mar 25, 2024
447932e
Update control slider color (#20124)
piitaya Mar 25, 2024
db37099
Fix stack style in panel view (#20135)
piitaya Mar 25, 2024
45a5c1c
Add confirmation button in lock more info (#20093)
piitaya Mar 25, 2024
5289cd3
Add floor support (#20187)
bramkragten Mar 26, 2024
e9cac94
Show integration page if no integrations are configured (#20107)
silamon Mar 26, 2024
b239ec2
Add image domain to sensors (#20194)
OnFreund Mar 26, 2024
eb4ae92
Add support for labels (#20189)
bramkragten Mar 26, 2024
5547bc7
Add question based matter commissioning flow (#20188)
piitaya Mar 26, 2024
2f9e667
Bump express from 4.18.3 to 4.19.2 (#20193)
dependabot[bot] Mar 26, 2024
feecc9f
Update dependency @bundle-stats/plugin-webpack-filter to v4.12.2 (#20…
renovate[bot] Mar 26, 2024
202fa82
Update vaadinWebComponents monorepo to v24.3.10 (#20180)
renovate[bot] Mar 26, 2024
480448a
Add maximum number of columns option for section view (#20145)
piitaya Mar 27, 2024
9347944
Update matter app translations (#20198)
piitaya Mar 27, 2024
8d8807e
Fix profile page (#20199)
piitaya Mar 27, 2024
5de5396
Update en.json - fix expand_label_id, use areas instead of area (#20200)
Misiu Mar 27, 2024
7ca5467
climate: Add preset exemple (#19092)
Quentame Mar 27, 2024
141c8c5
Fix energy dates when using server TZ (#20191)
karwosts Mar 27, 2024
68935d4
Add categories, filtering, grouping to automation panel (#20197)
bramkragten Mar 27, 2024
e08a0c4
Add filtering and grouping to scenes and scripts (#20203)
bramkragten Mar 27, 2024
fb99dc4
Update dependency transform-async-modules-webpack-plugin to v1.0.4 (#…
renovate[bot] Mar 27, 2024
64c3fb1
Update formatjs monorepo (#20196)
renovate[bot] Mar 27, 2024
b662512
Fix missing column headers for various data tables (#20160)
karwosts Mar 27, 2024
f5ff55a
Support no level on floors (#20206)
bramkragten Mar 27, 2024
ae8671a
Add filtering and grouping to device and entities config pages (#20204)
bramkragten Mar 27, 2024
2c4b31d
Use primary color for user message in assist dialog (#20207)
piitaya Mar 27, 2024
7427e17
Remove border from chip and use ha-label for label (#20205)
piitaya Mar 27, 2024
705c0e5
Allow delete floor (#20208)
bramkragten Mar 27, 2024
e42ddb8
Update ha-target-picker.ts
bramkragten Mar 27, 2024
c25e23c
Fix translations for label and category (#20209)
piitaya Mar 27, 2024
4687add
Bumped version to 20240327.0
bramkragten Mar 27, 2024
55c8589
Merge branch 'master' into dev
bramkragten Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.148.1/containers/python-3/.devcontainer/base.Dockerfile
FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.11
FROM mcr.microsoft.com/devcontainers/python:3.12

ENV \
DEBIAN_FRONTEND=noninteractive \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cast_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
ref: dev

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
ref: master

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
- name: Setup Node
uses: actions/[email protected]
with:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Build resources
run: ./node_modules/.bin/gulp gen-icons-json build-translations build-locale-data gather-gallery-pages
- name: Setup lint cache
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: |
node_modules/.cache/prettier
Expand All @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
- name: Setup Node
uses: actions/[email protected]
with:
Expand All @@ -76,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
- name: Setup Node
uses: actions/[email protected]
with:
Expand All @@ -100,7 +100,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
- name: Setup Node
uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/demo_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
ref: dev

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
ref: master

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/design_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2

- name: Setup Node
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/design_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
if: github.repository == 'home-assistant/frontend' && contains(github.event.pull_request.labels.*.name, 'needs design preview')
steps:
- name: Check out files from GitHub
uses: actions/[email protected].1
uses: actions/[email protected].2

- name: Setup Node
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: "0 1 * * *"

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
NODE_OPTIONS: --max_old_space_size=6144

permissions:
Expand All @@ -20,7 +20,7 @@ jobs:
contents: write
steps:
- name: Checkout the repository
uses: actions/[email protected].1
uses: actions/[email protected].2

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- published

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
NODE_OPTIONS: --max_old_space_size=6144

# Set default workflow permissions
Expand All @@ -23,7 +23,7 @@ jobs:
contents: write # Required to upload release assets
steps:
- name: Checkout the repository
uses: actions/[email protected].1
uses: actions/[email protected].2

- name: Verify version
uses: home-assistant/actions/helpers/verify-version@master
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
script/release

- name: Upload release assets
uses: softprops/action-gh-release@v0.1.15
uses: softprops/action-gh-release@v2.0.4
with:
files: |
dist/*.whl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/translations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected].1
uses: actions/[email protected].2

- name: Upload Translations
run: |
Expand Down

This file was deleted.

324 changes: 162 additions & 162 deletions .yarn/releases/yarn-4.1.0.cjs → .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.0.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs
4 changes: 4 additions & 0 deletions demo/src/ha-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export class HaDemo extends HomeAssistantAppEl {
id: "sensor.co2_intensity",
name: null,
icon: null,
labels: [],
categories: {},
platform: "co2signal",
hidden_by: null,
entity_category: null,
Expand All @@ -88,6 +90,8 @@ export class HaDemo extends HomeAssistantAppEl {
id: "sensor.co2_intensity",
name: null,
icon: null,
labels: [],
categories: {},
platform: "co2signal",
hidden_by: null,
entity_category: null,
Expand Down
1 change: 1 addition & 0 deletions demo/src/stubs/config_entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const mockConfigEntries = (hass: MockHomeAssistant) => {
supports_options: false,
supports_remove_device: false,
supports_unload: true,
supports_reconfigure: true,
pref_disable_new_entities: false,
pref_disable_polling: false,
disabled_by: null,
Expand Down
1 change: 1 addition & 0 deletions gallery/src/data/traces/basic_trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const basicTrace: DemoTrace = {
{
path: "trigger/0",
timestamp: "2021-03-25T04:36:51.223693+00:00",
changed_variables: {},
},
],
"condition/0": [
Expand Down
1 change: 1 addition & 0 deletions gallery/src/data/traces/motion-light-trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const motionLightTrace: DemoTrace = {
{
path: "trigger/0",
timestamp: "2021-03-25T04:36:51.223693+00:00",
changed_variables: {},
},
],
"action/0": [
Expand Down
12 changes: 6 additions & 6 deletions gallery/src/pages/automation/describe-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const ENTITIES = [
}),
];

const conditions = [
{ condition: "and" },
{ condition: "not" },
{ condition: "or" },
const conditions: Condition[] = [
{ condition: "and", conditions: [] },
{ condition: "not", conditions: [] },
{ condition: "or", conditions: [] },
{ condition: "state", entity_id: "light.kitchen", state: "on" },
{
condition: "numeric_state",
Expand All @@ -34,11 +34,11 @@ const conditions = [
above: 20,
},
{ condition: "sun", after: "sunset" },
{ condition: "sun", after: "sunrise", offset: "-01:00" },
{ condition: "sun", after: "sunrise", before_offset: 3600 },
{ condition: "zone", entity_id: "device_tracker.person", zone: "zone.home" },
{ condition: "trigger", id: "motion" },
{ condition: "time" },
{ condition: "template" },
{ condition: "template", value_template: "" },
];

const initialCondition: Condition = {
Expand Down
1 change: 1 addition & 0 deletions gallery/src/pages/automation/trace-timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class DemoAutomationTraceTimeline extends LitElement {
super.firstUpdated(changedProps);
const hass = provideHass(this);
hass.updateTranslations(null, "en");
hass.updateTranslations("config", "en");
}

static get styles() {
Expand Down
1 change: 1 addition & 0 deletions gallery/src/pages/automation/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class DemoAutomationTrace extends LitElement {
super.firstUpdated(changedProps);
const hass = provideHass(this);
hass.updateTranslations(null, "en");
hass.updateTranslations("config", "en");
}

static get styles() {
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/pages/components/ha-control-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class DemoHaBarButton extends LitElement {
}
.custom-group {
--control-button-group-thickness: 100px;
--control-button-group-border-radius: 18px;
--control-button-group-border-radius: 36px;
--control-button-group-spacing: 20px;
}
.custom-group ha-control-button {
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/pages/components/ha-control-number-buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class DemoHarControlNumberButtons extends LitElement {
--control-number-buttons-background-color: #2196f3;
--control-number-buttons-background-opacity: 0.1;
--control-number-buttons-thickness: 100px;
--control-number-buttons-border-radius: 24px;
--control-number-buttons-border-radius: 36px;
}
`;
}
Expand Down
4 changes: 2 additions & 2 deletions gallery/src/pages/components/ha-control-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ export class DemoHaControlSelect extends LitElement {
.custom {
--mdc-icon-size: 24px;
--control-select-color: var(--state-fan-active-color);
--control-select-thickness: 100px;
--control-select-border-radius: 24px;
--control-select-thickness: 130px;
--control-select-border-radius: 48px;
}
.vertical-selects {
height: 300px;
Expand Down
4 changes: 2 additions & 2 deletions gallery/src/pages/components/ha-control-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export class DemoHaBarSlider extends LitElement {
--control-slider-color: #ffcf4c;
--control-slider-background: #ffcf4c;
--control-slider-background-opacity: 0.2;
--control-slider-thickness: 100px;
--control-slider-border-radius: 24px;
--control-slider-thickness: 130px;
--control-slider-border-radius: 48px;
}
.vertical-sliders {
height: 300px;
Expand Down
4 changes: 2 additions & 2 deletions gallery/src/pages/components/ha-control-switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export class DemoHaControlSwitch extends LitElement {
.custom {
--control-switch-on-color: var(--green-color);
--control-switch-off-color: var(--red-color);
--control-switch-thickness: 100px;
--control-switch-border-radius: 24px;
--control-switch-thickness: 130px;
--control-switch-border-radius: 48px;
--control-switch-padding: 6px;
--mdc-icon-size: 24px;
}
Expand Down
9 changes: 9 additions & 0 deletions gallery/src/pages/components/ha-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const DEVICES = [
hw_version: null,
via_device_id: null,
serial_number: null,
labels: [],
},
{
area_id: "backyard",
Expand All @@ -77,6 +78,7 @@ const DEVICES = [
hw_version: null,
via_device_id: null,
serial_number: null,
labels: [],
},
{
area_id: null,
Expand All @@ -95,30 +97,37 @@ const DEVICES = [
hw_version: null,
via_device_id: null,
serial_number: null,
labels: [],
},
];

const AREAS: AreaRegistryEntry[] = [
{
area_id: "backyard",
floor_id: null,
name: "Backyard",
icon: null,
picture: null,
aliases: [],
labels: [],
},
{
area_id: "bedroom",
floor_id: null,
name: "Bedroom",
icon: "mdi:bed",
picture: null,
aliases: [],
labels: [],
},
{
area_id: "livingroom",
floor_id: null,
name: "Livingroom",
icon: "mdi:sofa",
picture: null,
aliases: [],
labels: [],
},
];

Expand Down
Loading
Loading