Bump wolf_smartset to 0.1.8 and handle server fetch error (#43351)
parent
17e1a2a78a
commit
edd25ae338
|
@ -4,7 +4,7 @@ import logging
|
|||
|
||||
from httpcore import ConnectError, ConnectTimeout
|
||||
from wolf_smartset.token_auth import InvalidAuth
|
||||
from wolf_smartset.wolf_client import WolfClient
|
||||
from wolf_smartset.wolf_client import FetchFailed, WolfClient
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
|
@ -56,6 +56,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||
raise UpdateFailed(
|
||||
f"Error communicating with API: {exception}"
|
||||
) from exception
|
||||
except FetchFailed as exception:
|
||||
raise UpdateFailed(
|
||||
f"Could not fetch values from server due to: {exception}"
|
||||
) from exception
|
||||
except InvalidAuth as exception:
|
||||
raise UpdateFailed("Invalid authentication during update.") from exception
|
||||
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
"name": "Wolf SmartSet Service",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/wolflink",
|
||||
"requirements": ["wolf_smartset==0.1.6"],
|
||||
"requirements": ["wolf_smartset==0.1.8"],
|
||||
"codeowners": ["@adamkrol93"]
|
||||
}
|
||||
|
|
|
@ -2286,7 +2286,7 @@ withings-api==2.1.6
|
|||
wled==0.4.4
|
||||
|
||||
# homeassistant.components.wolflink
|
||||
wolf_smartset==0.1.6
|
||||
wolf_smartset==0.1.8
|
||||
|
||||
# homeassistant.components.xbee
|
||||
xbee-helper==0.0.7
|
||||
|
|
|
@ -1100,7 +1100,7 @@ withings-api==2.1.6
|
|||
wled==0.4.4
|
||||
|
||||
# homeassistant.components.wolflink
|
||||
wolf_smartset==0.1.6
|
||||
wolf_smartset==0.1.8
|
||||
|
||||
# homeassistant.components.xbox
|
||||
xbox-webapi==2.0.8
|
||||
|
|
Loading…
Reference in New Issue