Skip to content

Commit

Permalink
fix: 2023.6 compatibility (#607)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
protyposis and basnijholt authored Jun 11, 2023
1 parent 90b8d60 commit 12dae4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion custom_components/adaptive_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit 12dae4b

Please sign in to comment.