Skip to content

Commit af45d25

Browse files
authored
Merge pull request #6 from offbyone/fix-setup
2 parents 1252e22 + 50ff50c commit af45d25

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ enhance, and redistribute as you see fit.
5858

5959
## Releases
6060

61+
### 2.0.6
62+
Updated to fix https://github.com/offbyone/home-assistant-purpleair/issues/5
63+
6164
### 2.0.5
6265
Updated to match Home Assistant's new device constants in 2025
6366

custom_components/purpleair/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""The (Local) PurpleAir integration."""
2+
23
import asyncio
34
import logging
45

5-
from homeassistant.helpers.aiohttp_client import async_get_clientsession
66
from homeassistant.config_entries import ConfigEntry
77
from homeassistant.core import HomeAssistant
8+
from homeassistant.helpers.aiohttp_client import async_get_clientsession
89

910
from .const import DOMAIN
1011
from .PurpleAirApi import PurpleAirApi
@@ -28,7 +29,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
2829

2930
for component in PLATFORMS:
3031
hass.async_create_task(
31-
hass.config_entries.async_forward_entry_setup(entry, component)
32+
hass.config_entries.async_forward_entry_setups(entry, [component])
3233
)
3334

3435
return True

custom_components/purpleair/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "purpleair",
33
"name": "PurpleAir (Local)",
4-
"version": "2.0.5",
4+
"version": "2.0.6",
55
"iot_class": "local_polling",
66
"config_flow": true,
77
"documentation": "https://github.com/offbyone/home-assistant-purpleair",

0 commit comments

Comments
 (0)