fix: 2023.6 compatibility (#607)

* fix: 2023.6.0 compatibility

* ci: test with Python 3.11 against 2023.6.0b4

* Set 2023.06.0

* Bump to 2023.06.1

---------

Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
This commit is contained in:
Mario Guggenberger 2023-06-11 23:12:37 +02:00 committed by GitHub
commit 12dae4b6a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View file

@ -13,8 +13,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
core-version: ["2023.2.5", "2023.3.6", "2023.4.6", "2023.5.2", "dev"]
include:
- python-version: "3.10"
core-version: "2023.2.5"
- python-version: "3.10"
core-version: "2023.3.6"
- python-version: "3.10"
core-version: "2023.4.6"
- python-version: "3.10"
core-version: "2023.5.2"
- python-version: "3.11"
core-version: "2023.6.1"
- python-version: "3.11"
core-version: "dev"
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3

View file

@ -502,7 +502,7 @@ async def async_setup_entry(
data[config_entry.entry_id][SWITCH_DOMAIN] = switch
async_add_entities(
[switch, sleep_mode_switch, adapt_color_switch, adapt_brightness_switch],
[sleep_mode_switch, adapt_color_switch, adapt_brightness_switch, switch],
update_before_add=True,
)