mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Replace Wolflink dependency with wolf_comm to support authentication via OpenID (#110249)
* Add OpenID authentication to wolflink integration * Update wolf-comm to 0.0.2 * Upgrade wolf_comm to 0.0.3 + fix tests * Version 0.0.4 of wolf_comm including LICENSE.txt * Update requirements to wolf_comm 0.0.4 --------- Co-authored-by: Jan Rothkegel <jan.rothkegel@web.de>
This commit is contained in:
parent
776a9b8691
commit
05b23c2e7b
@ -3,8 +3,8 @@ from datetime import timedelta
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from httpx import RequestError
|
from httpx import RequestError
|
||||||
from wolf_smartset.token_auth import InvalidAuth
|
from wolf_comm.token_auth import InvalidAuth
|
||||||
from wolf_smartset.wolf_client import FetchFailed, ParameterReadError, WolfClient
|
from wolf_comm.wolf_client import FetchFailed, ParameterReadError, WolfClient
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
|
||||||
@ -50,7 +50,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
try:
|
try:
|
||||||
nonlocal refetch_parameters
|
nonlocal refetch_parameters
|
||||||
nonlocal parameters
|
nonlocal parameters
|
||||||
await wolf_client.update_session()
|
|
||||||
if not await wolf_client.fetch_system_state_list(device_id, gateway_id):
|
if not await wolf_client.fetch_system_state_list(device_id, gateway_id):
|
||||||
refetch_parameters = True
|
refetch_parameters = True
|
||||||
raise UpdateFailed(
|
raise UpdateFailed(
|
||||||
|
@ -3,8 +3,8 @@ import logging
|
|||||||
|
|
||||||
from httpcore import ConnectError
|
from httpcore import ConnectError
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from wolf_smartset.token_auth import InvalidAuth
|
from wolf_comm.token_auth import InvalidAuth
|
||||||
from wolf_smartset.wolf_client import WolfClient
|
from wolf_comm.wolf_client import WolfClient
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/wolflink",
|
"documentation": "https://www.home-assistant.io/integrations/wolflink",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["wolf_smartset"],
|
"loggers": ["wolf_comm"],
|
||||||
"requirements": ["wolf-smartset==0.1.11"]
|
"requirements": ["wolf-comm==0.0.4"]
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""The Wolf SmartSet sensors."""
|
"""The Wolf SmartSet sensors."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from wolf_smartset.models import (
|
from wolf_comm.models import (
|
||||||
HoursParameter,
|
HoursParameter,
|
||||||
ListItemParameter,
|
ListItemParameter,
|
||||||
Parameter,
|
Parameter,
|
||||||
|
@ -2856,7 +2856,7 @@ wirelesstagpy==0.8.1
|
|||||||
wled==0.17.0
|
wled==0.17.0
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf-smartset==0.1.11
|
wolf-comm==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.wyoming
|
# homeassistant.components.wyoming
|
||||||
wyoming==1.5.2
|
wyoming==1.5.2
|
||||||
|
@ -2188,7 +2188,7 @@ wiffi==1.1.2
|
|||||||
wled==0.17.0
|
wled==0.17.0
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf-smartset==0.1.11
|
wolf-comm==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.wyoming
|
# homeassistant.components.wyoming
|
||||||
wyoming==1.5.2
|
wyoming==1.5.2
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from httpcore import ConnectError
|
from httpcore import ConnectError
|
||||||
from wolf_smartset.models import Device
|
from wolf_comm.models import Device
|
||||||
from wolf_smartset.token_auth import InvalidAuth
|
from wolf_comm.token_auth import InvalidAuth
|
||||||
|
|
||||||
from homeassistant import config_entries, data_entry_flow
|
from homeassistant import config_entries, data_entry_flow
|
||||||
from homeassistant.components.wolflink.const import (
|
from homeassistant.components.wolflink.const import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user