Skip to content

Commit 31cf485

Browse files
authored
Merge pull request #11 from CoMPaTech/async_forward_entry_setups
Fix async_forward_entry_setups
2 parents 4d34d03 + af10e6f commit 31cf485

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

.github/workflows/hassfest.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,9 @@ on:
77
- cron: "0 0 * * *"
88

99
jobs:
10-
check_requirements:
10+
hassfest_custom:
1111
runs-on: "ubuntu-latest"
1212
steps:
13-
- uses: "actions/checkout@v3"
14-
- name: Verify Hassfest type
15-
id: hassfest-verify
16-
run: |
17-
echo "::set-output name=hassfest::$(grep -q -E "require.*http.*test-files.pythonhosted.*#" custom_components/plugwise/manifest.json && echo lite || echo full)"
18-
- name: Not running hassfest!
19-
if: ${{ steps.hassfest-verify.outputs.hassfest == 'lite' }}
20-
run: |
21-
echo "Unable to run home-assistant/actions/hassfest@master due to test package usage"
13+
- uses: "actions/checkout@v3.3.0"
2214
- uses: home-assistant/actions/hassfest@master
23-
if: ${{ steps.hassfest-verify.outputs.hassfest == 'full' }}
15+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ venv
55
clean
66
*.sedbck
77
*.swp
8+
.DS_store

custom_components/stromer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
5353
)
5454

5555
# Set up platforms (i.e. sensors, binary_sensors)
56-
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
56+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
5757

5858
return True
5959

custom_components/stromer/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "stromer",
33
"name": "Stromer e-bike",
4-
"version": "0.1.0",
4+
"version": "0.2.0a1",
55
"documentation": "https://github.com/CoMPaTech/stromer",
66
"requirements": [],
77
"codeowners": ["@CoMPaTech"],

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Stromer E-Bike",
33
"domains": ["binary_sensor","sensor", "device_tracker"],
4-
"homeassistant": "2022.3.0",
4+
"homeassistant": "2023.3.0",
55
"render_readme": true
66
}

0 commit comments

Comments
 (0)