Skip to content

Commit

Permalink
Completely different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpenney committed Apr 26, 2024
1 parent 2bffdd0 commit bf76580
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v1"
with:
python-version: "3.10"
python-version: "3.8"
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v1"
with:
python-version: "3.10"
python-version: "3.8"
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
Expand Down
4 changes: 1 addition & 3 deletions custom_components/npm_switches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
for platform in PLATFORMS:
if entry.options.get(platform, True):
coordinator.platforms.append(platform)
entry.async_create_task(
hass, hass.config_entries.async_forward_entry_setup(entry, platform)
)
await hass.config_entries.async_forward_entry_setup(entry, platform)

entry.async_on_unload(entry.add_update_listener(async_reload_entry))
return True
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "NPM Switches",
"hacs": "1.6.0",
"homeassistant": "2023.02.0"
"homeassistant": "2022.06.01"
}

0 comments on commit bf76580

Please sign in to comment.