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>
pull/107905/head^2
Jan Rothkegel 2024-02-21 09:37:13 +01:00 committed by GitHub
parent 776a9b8691
commit 05b23c2e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 11 additions and 12 deletions

View File

@ -3,8 +3,8 @@ from datetime import timedelta
import logging
from httpx import RequestError
from wolf_smartset.token_auth import InvalidAuth
from wolf_smartset.wolf_client import FetchFailed, ParameterReadError, WolfClient
from wolf_comm.token_auth import InvalidAuth
from wolf_comm.wolf_client import FetchFailed, ParameterReadError, WolfClient
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
@ -50,7 +50,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
try:
nonlocal refetch_parameters
nonlocal parameters
await wolf_client.update_session()
if not await wolf_client.fetch_system_state_list(device_id, gateway_id):
refetch_parameters = True
raise UpdateFailed(

View File

@ -3,8 +3,8 @@ import logging
from httpcore import ConnectError
import voluptuous as vol
from wolf_smartset.token_auth import InvalidAuth
from wolf_smartset.wolf_client import WolfClient
from wolf_comm.token_auth import InvalidAuth
from wolf_comm.wolf_client import WolfClient
from homeassistant import config_entries
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME

View File

@ -5,6 +5,6 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/wolflink",
"iot_class": "cloud_polling",
"loggers": ["wolf_smartset"],
"requirements": ["wolf-smartset==0.1.11"]
"loggers": ["wolf_comm"],
"requirements": ["wolf-comm==0.0.4"]
}

View File

@ -1,7 +1,7 @@
"""The Wolf SmartSet sensors."""
from __future__ import annotations
from wolf_smartset.models import (
from wolf_comm.models import (
HoursParameter,
ListItemParameter,
Parameter,

View File

@ -2856,7 +2856,7 @@ wirelesstagpy==0.8.1
wled==0.17.0
# homeassistant.components.wolflink
wolf-smartset==0.1.11
wolf-comm==0.0.4
# homeassistant.components.wyoming
wyoming==1.5.2

View File

@ -2188,7 +2188,7 @@ wiffi==1.1.2
wled==0.17.0
# homeassistant.components.wolflink
wolf-smartset==0.1.11
wolf-comm==0.0.4
# homeassistant.components.wyoming
wyoming==1.5.2

View File

@ -2,8 +2,8 @@
from unittest.mock import patch
from httpcore import ConnectError
from wolf_smartset.models import Device
from wolf_smartset.token_auth import InvalidAuth
from wolf_comm.models import Device
from wolf_comm.token_auth import InvalidAuth
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.wolflink.const import (