Skip to content

Commit 8de1e1a

Browse files
committed
Use HA httpx client.
1 parent bfc2df2 commit 8de1e1a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

custom_components/petsafe/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919
from homeassistant.core import HomeAssistant, ServiceCall
2020
from homeassistant.exceptions import ConfigEntryAuthFailed
21+
from homeassistant.helpers.httpx_client import get_async_client
2122
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
2223

2324
import petsafe
@@ -54,6 +55,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
5455
entry.data.get(CONF_TOKEN),
5556
entry.data.get(CONF_REFRESH_TOKEN),
5657
entry.data.get(CONF_ACCESS_TOKEN),
58+
client = get_async_client(hass)
5759
)
5860

5961
hass.data.setdefault(DOMAIN, {})

custom_components/petsafe/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"version": "1.3.0",
2+
"version": "1.3.1",
33
"domain": "petsafe",
44
"name": "PetSafe",
55
"config_flow": true,
66
"documentation": "https://github.com/dcmeglio/homeassistant-petsafe/blob/master/README",
77
"requirements": [
8-
"petsafe==2.0.1"
8+
"petsafe==2.0.4"
99
],
1010
"issue_tracker": "https://github.com/dcmeglio/homeassistant-petsafe/issues",
1111
"ssdp": [],

0 commit comments

Comments
 (0)