From 134e9be8a8020abe45399d663bb0ad64f1995995 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 28 Dec 2023 14:40:03 +0100 Subject: [PATCH 01/15] Upgrade Ruby, Node, Jekyll, sass-embedded + devcontainer (#30538) --- Dockerfile => .devcontainer/Dockerfile | 5 +-- .devcontainer/devcontainer.json | 11 +++-- .github/workflows/test.yml | 4 +- .ruby-version | 2 +- .vscode/extensions.json | 2 +- Gemfile | 4 +- Gemfile.lock | 56 ++++++++++++++++++-------- 7 files changed, 54 insertions(+), 30 deletions(-) rename Dockerfile => .devcontainer/Dockerfile (76%) diff --git a/Dockerfile b/.devcontainer/Dockerfile similarity index 76% rename from Dockerfile rename to .devcontainer/Dockerfile index a5c00fa85ad..ed7283a0f35 100644 --- a/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,6 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT} ARG NODE_VERSION="lts/*" RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1" +RUN su vscode -c "/usr/local/rvm/bin/rvm fix-permissions" # Locale env vars ENV \ @@ -17,7 +18,3 @@ RUN \ ack \ && echo "en_US UTF-8" > /etc/locale.gen \ && locale-gen en_US.UTF-8 - -# Install the specific version of bundler we need -COPY Gemfile.lock ./ -RUN gem install bundler -v `awk 'c&&c--;/BUNDLED WITH/{c=1}' Gemfile.lock` \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9db615d42bc..c34491e5358 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,16 +1,19 @@ { "name": "home-assistant.io", "build": { - "dockerfile": "../Dockerfile", + "dockerfile": "./Dockerfile", "context": "..", "args": { - "VARIANT": "2.7", - "NODE_VERSION": "18" + "VARIANT": "3.1", + "NODE_VERSION": "20" } }, "appPort": [4000], "onCreateCommand": "bundle install && npm install", - "containerEnv": { "DEVCONTAINER": "true" }, + "containerEnv": { + "DEVCONTAINER": "true", + "BUNDLE_PATH": "vendor/bundle" + }, "customizations": { "vscode": { "extensions": [ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c147b84c11a..0e94eee4c6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - name: Setting up Node.js uses: actions/setup-node@v4.0.1 with: - node-version: 16.x + node-version: 20 cache: "npm" - name: Install dependencies run: npm install @@ -29,7 +29,7 @@ jobs: - name: Setting up Node.js uses: actions/setup-node@v4.0.1 with: - node-version: 16.x + node-version: 20 cache: "npm" - name: Install dependencies run: npm install diff --git a/.ruby-version b/.ruby-version index 37c2961c243..0aec50e6ede 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.2 +3.1.4 diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 199390c8fce..f2b8a48dbe1 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,7 +4,7 @@ "editorconfig.editorconfig", "GitHub.vscode-pull-request-github", "mrmlnc.vscode-scss", - "rebornix.Ruby", + "Shopify.ruby-lsp", "streetsidesoftware.code-spell-checker", "taichi.vscode-textlint", "yzhang.markdown-all-in-one" diff --git a/Gemfile b/Gemfile index 47c3b7df813..073b55ddcbd 100644 --- a/Gemfile +++ b/Gemfile @@ -4,12 +4,14 @@ ruby '> 2.5.0' group :development do gem 'rake', '13.1.0' - gem 'jekyll', '4.3.2' + gem 'jekyll', '4.3.3' gem 'compass', '1.0.3' gem 'sass-globbing', '1.1.5' gem 'stringex', '2.8.6' # > 2.1.0 causes slowdowns https://github.com/sass/sassc-ruby/issues/189 gem 'sassc', '2.1.0' + gem 'rubocop', '1.59.0' + gem 'ruby-lsp', '0.13.2' end group :jekyll_plugins do diff --git a/Gemfile.lock b/Gemfile.lock index c3463c6b54a..073dc0ed05d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,6 +3,7 @@ GEM specs: addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) + ast (2.4.2) chunky_png (1.4.0) colorator (1.1.0) commonmarker (0.23.10) @@ -23,14 +24,13 @@ GEM eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) - eventmachine (1.2.7-x64-mingw32) ffi (1.16.3) forwardable-extended (2.6.0) - google-protobuf (3.25.1) + google-protobuf (3.25.1-x86_64-linux) http_parser.rb (0.8.0) i18n (1.14.1) concurrent-ruby (~> 1.0) - jekyll (4.3.2) + jekyll (4.3.3) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) @@ -58,54 +58,75 @@ GEM nokogiri (~> 1.12) jekyll-watch (2.2.1) listen (~> 3.0) + json (2.7.1) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) + language_server-protocol (3.17.0.3) liquid (4.0.4) listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) - mini_portile2 (2.8.5) multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) - nokogiri (1.15.5) - mini_portile2 (~> 2.8.2) + nokogiri (1.15.5-x86_64-linux) racc (~> 1.4) + parallel (1.24.0) + parser (3.2.2.4) + ast (~> 2.4.1) + racc pathutil (0.16.2) forwardable-extended (~> 2.6) + prism (0.19.0) public_suffix (5.0.4) racc (1.7.3) rack (2.2.8) rack-protection (3.1.0) rack (~> 2.2, >= 2.2.4) + rainbow (3.1.1) rake (13.1.0) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) + regexp_parser (2.8.3) rexml (3.2.6) rouge (4.2.0) + rubocop (1.59.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.2.2.4) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.30.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + ruby-lsp (0.13.2) + language_server-protocol (~> 3.17.0) + prism (>= 0.19.0, < 0.20) + sorbet-runtime (>= 0.5.5685) + ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) safe_yaml (1.0.5) sass (3.4.25) - sass-embedded (1.63.6) - google-protobuf (~> 3.23) - rake (>= 13.0.0) - sass-embedded (1.63.6-x64-mingw32) + sass-embedded (1.69.5-x86_64-linux-gnu) google-protobuf (~> 3.23) sass-globbing (1.1.5) sass (>= 3.1) - sassc (2.1.0) - ffi (~> 1.9) - sassc (2.1.0-x64-mingw32) + sassc (2.1.0-x86_64-linux) ffi (~> 1.9) sinatra (3.1.0) mustermann (~> 3.0) rack (~> 2.2, >= 2.2.4) rack-protection (= 3.1.0) tilt (~> 2.0) + sorbet-runtime (0.5.11164) stringex (2.8.6) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) @@ -118,18 +139,19 @@ GEM webrick (1.8.1) PLATFORMS - ruby - x64-mingw32 + x86_64-linux DEPENDENCIES compass (= 1.0.3) - jekyll (= 4.3.2) + jekyll (= 4.3.3) jekyll-commonmark (= 1.4.0) jekyll-paginate (= 1.1.0) jekyll-sitemap (= 1.4.0) jekyll-toc (= 0.18.0) nokogiri (= 1.15.5) rake (= 13.1.0) + rubocop (= 1.59.0) + ruby-lsp (= 0.13.2) sass-globbing (= 1.1.5) sassc (= 2.1.0) sinatra (= 3.1.0) @@ -141,4 +163,4 @@ RUBY VERSION ruby 2.6.2p47 BUNDLED WITH - 2.2.28 + 2.5.3 From 22a77ba60dfa554829f115bcde81ba2b64b45864 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 14:45:08 +0100 Subject: [PATCH 02/15] Bump nokogiri from 1.15.5 to 1.16.0 (#30536) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile | 2 +- Gemfile.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 073b55ddcbd..2ecaf8aff36 100644 --- a/Gemfile +++ b/Gemfile @@ -22,7 +22,7 @@ group :jekyll_plugins do end gem 'sinatra', '3.1.0' -gem 'nokogiri', '1.15.5' +gem 'nokogiri', '1.16.0' # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem # and associated library diff --git a/Gemfile.lock b/Gemfile.lock index 073dc0ed05d..25091e81bb9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -72,7 +72,7 @@ GEM multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) - nokogiri (1.15.5-x86_64-linux) + nokogiri (1.16.0-x86_64-linux) racc (~> 1.4) parallel (1.24.0) parser (3.2.2.4) @@ -148,7 +148,7 @@ DEPENDENCIES jekyll-paginate (= 1.1.0) jekyll-sitemap (= 1.4.0) jekyll-toc (= 0.18.0) - nokogiri (= 1.15.5) + nokogiri (= 1.16.0) rake (= 13.1.0) rubocop (= 1.59.0) ruby-lsp (= 0.13.2) From ed927595c92004c8c691710ff666b4b6122d4251 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 28 Dec 2023 14:45:51 +0100 Subject: [PATCH 03/15] Update ping.markdown (#30539) --- source/_integrations/ping.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_integrations/ping.markdown b/source/_integrations/ping.markdown index 2d1b9958b2a..05462d4b48b 100644 --- a/source/_integrations/ping.markdown +++ b/source/_integrations/ping.markdown @@ -43,10 +43,10 @@ This sensor is enabled by default. The default polling interval is 30 seconds. The sensor exposes the different round trip times in milliseconds measured by `ping` as attributes: -- `round_trip_time_mdev` -- `round_trip_time_avg` -- `round_trip_time_min` -- `round_trip_time_max` +- `round_trip_time_mdev` - the standard deviation +- `round_trip_time_avg` - the average round trip time +- `round_trip_time_min` - the shortest round trip time +- `round_trip_time_max` - the longest round trip time
When run on Windows systems, the round trip time attributes are rounded to the nearest millisecond and the mdev value is unavailable. @@ -62,4 +62,4 @@ The device tracker is disabled by default and can be enabled in the UI. Please keep in mind that modern smart phones will usually turn off WiFi when they are idle. Simple trackers like this may not be reliable on their own.
-See the [person integration page](/integrations/person/) for instructions on how to configure the people to be tracked. \ No newline at end of file +See the [person integration page](/integrations/person/) for instructions on how to configure the people to be tracked. From 9754c7549c9f9756c2e2f3ea0b00dce464a12e77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 08:29:45 +0100 Subject: [PATCH 04/15] Bump sass-embedded from 1.69.5 to 1.69.6 (#30553) --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 25091e81bb9..642f0f5467b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -115,8 +115,8 @@ GEM ruby2_keywords (0.0.5) safe_yaml (1.0.5) sass (3.4.25) - sass-embedded (1.69.5-x86_64-linux-gnu) - google-protobuf (~> 3.23) + sass-embedded (1.69.6-x86_64-linux-gnu) + google-protobuf (~> 3.25) sass-globbing (1.1.5) sass (>= 3.1) sassc (2.1.0-x86_64-linux) From 53ed74b57d9747cf9b3680a8746de031ec3c67a2 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sat, 30 Dec 2023 18:32:16 +0100 Subject: [PATCH 05/15] Add extra Aruba devices to list (#30574) --- source/_integrations/aruba.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/_integrations/aruba.markdown b/source/_integrations/aruba.markdown index 0778e577d8a..55741baae04 100644 --- a/source/_integrations/aruba.markdown +++ b/source/_integrations/aruba.markdown @@ -16,6 +16,9 @@ This platform allows you to detect presence by looking at connected devices to a Supported devices (tested): - Aruba AP-105 +- Aruba AP-505 +- Aruba AP-515 +- Aruba IAP-315 - Aruba IAP-335 - Aruba Instant IAP-275 From 60be2ddb9950161d84897975354c627cd0e0406b Mon Sep 17 00:00:00 2001 From: tomlut <10679300+tomlut@users.noreply.github.com> Date: Tue, 2 Jan 2024 21:35:40 +1100 Subject: [PATCH 06/15] Update timer.markdown (#30578) --- source/_integrations/timer.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/timer.markdown b/source/_integrations/timer.markdown index 041e4e4f2d2..60acde7ac07 100644 --- a/source/_integrations/timer.markdown +++ b/source/_integrations/timer.markdown @@ -107,7 +107,7 @@ Change an active timer. This changes the duration of the timer with the duration ### Service `timer.pause` -Pause a running timer. This will retain the remaining duration for later continuation. You can also use `entity_id: all` and all active timers will be paused. +Pause a running timer. This will retain the remaining duration for later continuation. To resume a timer use the `timer.start` service without passing a duration. You can also use `entity_id: all` and all active timers will be paused. | Service data attribute | Optional | Description | | ---------------------- | -------- | ----------- | From 23c2c3fdea9186a7cf58e4f21f3c6f862a618a6b Mon Sep 17 00:00:00 2001 From: Christian Adamini Date: Tue, 2 Jan 2024 11:41:11 +0100 Subject: [PATCH 07/15] Fix typos and grammar in yaml.markdown (#30597) --- source/_docs/configuration/yaml.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/_docs/configuration/yaml.markdown b/source/_docs/configuration/yaml.markdown index d3f2adda226..6cd47527289 100644 --- a/source/_docs/configuration/yaml.markdown +++ b/source/_docs/configuration/yaml.markdown @@ -3,7 +3,7 @@ title: "YAML" description: "Details about YAML to configure Home Assistant." --- -Home Assistant uses the [YAML](https://yaml.org/) syntax for configuration. YAML might take a while to get used to but is really powerful in allowing you to express complex configurations. +Home Assistant uses the [YAML](https://yaml.org/) syntax for configuration. YAML might take a while to get used to but is powerful in allowing you to express complex configurations. While more and more integrations are configured through the UI, for some, you will add code in your [`configuration.yaml`](/docs/configuration/) file to specify its settings. @@ -21,15 +21,15 @@ notify: The basics of YAML syntax are block collections and mappings containing key-value pairs. Each item in a collection starts with a `-` while mappings have the format `key: value`. This is somewhat similar to a Hash table or more specifically a dictionary in Python. These can be nested as well. **Beware that if you specify duplicate keys, the last value for a key is used**. -Note that indentation is an important part of specifying relationships using YAML. Things that are indented are nested "inside" things that are one level higher. So in the above example, `platform: pushbullet` is a property of (nested inside) the `notify` integration. +In YAML, indentation is important for specifying relationships. Indented lines are nested inside lines that are one level higher. In the above example, `platform: pushbullet` is a property of (nested inside) the `notify` integration. -Getting the right indentation can be tricky if you're not using an editor with a fixed width font. Tabs are not allowed to be used for indentation. Convention is to use 2 spaces for each level of indentation. +Getting the right indentation can be tricky if you're not using an editor with a fixed-width font. Tabs are not allowed to be used for indentation. The convention is to use 2 spaces for each level of indentation. -You can use the online service [YAML Validator](https://codebeautify.org/yaml-validator/) to check if your YAML syntax is correct before loading it into Home Assistant which will save you some time. If you do so, be aware that this is a third-party service and is not maintained by the Home Assistant community. +To check if your YAML syntax is correct before loading it into Home Assistant, you can use the third-party service [YAML Validator](https://codebeautify.org/yaml-validator/) (not maintained by the Home Assistant community).
-Please pay attention to not storing private data (passwords, API keys, etc.) directly in your `configuration.yaml` file. Private data can be stored in either a [separate file](/docs/configuration/secrets/) or in [environmental variables](/docs/configuration/yaml/#using-environment-variables), which circumvents this security problem. +Pay attention to not storing private data (passwords, API keys, etc.) directly in your `configuration.yaml` file. Private data can be stored in either a [separate file](/docs/configuration/secrets/) or in [environmental variables](/docs/configuration/yaml/#using-environment-variables), which circumvents this security problem.
@@ -76,7 +76,7 @@ example: #### Default value -If an environment variable is not set, you can fallback to a default value. +If an environment variable is not set, you can fall back to a default value. ```yaml example: From 35c355ede2fc6fe8def6a12924fc150262640258 Mon Sep 17 00:00:00 2001 From: cheynetom <87618998+cheynetom@users.noreply.github.com> Date: Tue, 2 Jan 2024 02:12:34 -1000 Subject: [PATCH 08/15] Update opnsense.markdown (#30590) --- source/_integrations/opnsense.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/opnsense.markdown b/source/_integrations/opnsense.markdown index 06df9f5645a..381548a3e38 100644 --- a/source/_integrations/opnsense.markdown +++ b/source/_integrations/opnsense.markdown @@ -14,7 +14,7 @@ ha_platforms: ha_integration_type: integration --- -[OPNsense](https://opnsense.org/) is an open source HardenedBSD based firewall +[OPNsense](https://opnsense.org/) is an open source FreeBSD based firewall and routing platform. There is currently support for the following device types within Home Assistant: From 03b8f0778a9c39a8611e2dcad91c898d8a8e2159 Mon Sep 17 00:00:00 2001 From: Danny Tsang <567982+dannytsang@users.noreply.github.com> Date: Tue, 2 Jan 2024 12:13:18 +0000 Subject: [PATCH 09/15] Created a compability section and added reported devices (#30594) --- source/_integrations/modem_callerid.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_integrations/modem_callerid.markdown b/source/_integrations/modem_callerid.markdown index 75fcb248439..a49a8b97ae3 100644 --- a/source/_integrations/modem_callerid.markdown +++ b/source/_integrations/modem_callerid.markdown @@ -23,6 +23,14 @@ This integration also offers a button to pick up and then hang up the call to pr {% include integrations/config_flow.md %} +## Compatibility + +Reported models with this integration include that work: +- [StarTech.com USB56KEMH2](https://www.startech.com/en-us/networking-io/usb56kemh2) + +Devices that did not work: +- [StarTech.com USB56KEM3](https://www.startech.com/en-us/networking-io/usb56kem3) + ## Examples An example automation: From ce77969b3507ce630c6a91045163379c4fc15a56 Mon Sep 17 00:00:00 2001 From: Danny Tsang <567982+dannytsang@users.noreply.github.com> Date: Tue, 2 Jan 2024 12:14:34 +0000 Subject: [PATCH 10/15] Added pointer on how to check supported servers for Growatt (#30592) --- source/_integrations/growatt_server.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/growatt_server.markdown b/source/_integrations/growatt_server.markdown index 3063255ff78..d9f5fb77a2c 100644 --- a/source/_integrations/growatt_server.markdown +++ b/source/_integrations/growatt_server.markdown @@ -13,7 +13,7 @@ ha_config_flow: true ha_integration_type: integration --- -This is a sensor to collect information from your Growatt inverters using [Growatt server](https://server.growatt.com/) by default. It is possible to specify an alternative endpoint server at configuration time e.g., [SMTEN](https://server.smten.com/). +This is a sensor to collect information from your Growatt inverters using [Growatt server](https://server.growatt.com/) by default. It is possible to specify an alternative endpoint server at configuration time e.g., [SMTEN](https://server.smten.com/). To see the latest supported servers, add the integration in Home Assistant to see the configuration options. This will log into your Growatt account and grab the first "Plant", after which it collects the inverters on this plant and creates sensors for these inverters as well as total sensors. From 683651664c56291f47b811a1f02cf923daf517ce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 13:14:48 +0100 Subject: [PATCH 11/15] Bump sinatra from 3.1.0 to 3.2.0 (#30589) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile | 2 +- Gemfile.lock | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 2ecaf8aff36..0ac5a5572b1 100644 --- a/Gemfile +++ b/Gemfile @@ -21,7 +21,7 @@ group :jekyll_plugins do gem 'jekyll-toc', '0.18.0' end -gem 'sinatra', '3.1.0' +gem 'sinatra', '3.2.0' gem 'nokogiri', '1.16.0' # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 642f0f5467b..b590e404eaa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,6 +4,7 @@ GEM addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) + base64 (0.2.0) chunky_png (1.4.0) colorator (1.1.0) commonmarker (0.23.10) @@ -84,7 +85,8 @@ GEM public_suffix (5.0.4) racc (1.7.3) rack (2.2.8) - rack-protection (3.1.0) + rack-protection (3.2.0) + base64 (>= 0.1.0) rack (~> 2.2, >= 2.2.4) rainbow (3.1.1) rake (13.1.0) @@ -121,10 +123,10 @@ GEM sass (>= 3.1) sassc (2.1.0-x86_64-linux) ffi (~> 1.9) - sinatra (3.1.0) + sinatra (3.2.0) mustermann (~> 3.0) rack (~> 2.2, >= 2.2.4) - rack-protection (= 3.1.0) + rack-protection (= 3.2.0) tilt (~> 2.0) sorbet-runtime (0.5.11164) stringex (2.8.6) @@ -154,7 +156,7 @@ DEPENDENCIES ruby-lsp (= 0.13.2) sass-globbing (= 1.1.5) sassc (= 2.1.0) - sinatra (= 3.1.0) + sinatra (= 3.2.0) stringex (= 2.8.6) tzinfo (~> 2.0) tzinfo-data From 6ef7d13490142fb02c2132df77affa15d8eaa10b Mon Sep 17 00:00:00 2001 From: Danny Tsang <567982+dannytsang@users.noreply.github.com> Date: Tue, 2 Jan 2024 12:18:37 +0000 Subject: [PATCH 12/15] Removed statement where conditional card only supports "and" (#30593) Co-authored-by: Franck Nijhof --- source/_dashboards/conditional.markdown | 27 +++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/source/_dashboards/conditional.markdown b/source/_dashboards/conditional.markdown index d025ed9d71b..9c4d23f1696 100644 --- a/source/_dashboards/conditional.markdown +++ b/source/_dashboards/conditional.markdown @@ -7,12 +7,7 @@ description: The Conditional card displays another card based on conditions. The conditional card displays another card based on conditions. -

- Screenshot of the conditional card - Screenshot of the conditional card. -

- -Note: if there are multiple conditions there will be treated as an 'and' condition. This means that for the card to show, _all_ conditions must be met. +![Screenshot of the conditional card](/images/dashboards/conditional_card.gif) {% include dashboard/edit_dashboard.md %} Note that while editing the dashboard, the card will always be shown, so be sure to exit editing mode to test the conditions. @@ -40,6 +35,7 @@ card: ## Examples +Only show when all the conditions are met: ```yaml type: conditional conditions: @@ -62,6 +58,25 @@ card: - light.bed_light ``` +Example condition where only one of the conditions needs to be met: +```yaml +type: conditional +conditions: + - condition: or + conditions: + - condition: state + entity: binary_sensor.co_alert + state: 'on' + - condition: state + entity: binary_sensor.rookmelder + state: 'on' +card: + type: entities + entities: + - binary_sensor.co_alert + - binary_sensor.rookmelder +``` + ## Card conditions ### State From 6a636466849042c3d757ad98906a8457dd00edfd Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 2 Jan 2024 13:22:08 +0100 Subject: [PATCH 13/15] Update dormakaba_dkey.markdown (#30583) --- source/_integrations/dormakaba_dkey.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/dormakaba_dkey.markdown b/source/_integrations/dormakaba_dkey.markdown index f490e7bb799..a35f3599af6 100644 --- a/source/_integrations/dormakaba_dkey.markdown +++ b/source/_integrations/dormakaba_dkey.markdown @@ -28,6 +28,6 @@ In addition to a lock entity, each added dKey lock will also have:
-The Dormakaba dKey lock is currently not working with USB dongles or built-in Bluetooth radios, only [ESPHome Bluetooth proxies](/integrations/bluetooth/#remote-adapters-bluetooth-proxies) work reliably. +The Dormakaba dKey lock is currently not working with USB dongles or built-in Bluetooth radios, only [ESPHome Bluetooth proxies](/integrations/bluetooth/#remote-adapters-bluetooth-proxies) configured to allow active connections work reliably.
From 94d6678e25f51ec45e131bf55bdfa305dcfcb03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 2 Jan 2024 18:43:37 +0100 Subject: [PATCH 14/15] Adjust example for Alexa smart home sensor (#30603) --- source/_integrations/alexa.smart_home.markdown | 1 - 1 file changed, 1 deletion(-) diff --git a/source/_integrations/alexa.smart_home.markdown b/source/_integrations/alexa.smart_home.markdown index 51ecabf6073..9ba11146076 100644 --- a/source/_integrations/alexa.smart_home.markdown +++ b/source/_integrations/alexa.smart_home.markdown @@ -1016,7 +1016,6 @@ Only temperature sensors are configured at this time. - _"Alexa, what's the temperature in the kitchen?"_ - _"Alexa, what's the upstairs temperature?"_ -- _"Alexa, what's the temperature of my ex-girlfriend's heart?"_ ### Switch, Input Boolean From eb4e45507e9e9a242e8ab3fb3980c28f4847998d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 08:01:14 +0100 Subject: [PATCH 15/15] Bump sass-embedded from 1.69.6 to 1.69.7 (#30608) --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index b590e404eaa..ca024f3bcbe 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -117,7 +117,7 @@ GEM ruby2_keywords (0.0.5) safe_yaml (1.0.5) sass (3.4.25) - sass-embedded (1.69.6-x86_64-linux-gnu) + sass-embedded (1.69.7-x86_64-linux-gnu) google-protobuf (~> 3.25) sass-globbing (1.1.5) sass (>= 3.1)