mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Bump wolf_smartset to 0.1.8 and handle server fetch error (#43351)
This commit is contained in:
parent
17e1a2a78a
commit
edd25ae338
@ -4,7 +4,7 @@ import logging
|
|||||||
|
|
||||||
from httpcore import ConnectError, ConnectTimeout
|
from httpcore import ConnectError, ConnectTimeout
|
||||||
from wolf_smartset.token_auth import InvalidAuth
|
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.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
@ -56,6 +56,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||||||
raise UpdateFailed(
|
raise UpdateFailed(
|
||||||
f"Error communicating with API: {exception}"
|
f"Error communicating with API: {exception}"
|
||||||
) from 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:
|
except InvalidAuth as exception:
|
||||||
raise UpdateFailed("Invalid authentication during update.") from exception
|
raise UpdateFailed("Invalid authentication during update.") from exception
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
"name": "Wolf SmartSet Service",
|
"name": "Wolf SmartSet Service",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/wolflink",
|
"documentation": "https://www.home-assistant.io/integrations/wolflink",
|
||||||
"requirements": ["wolf_smartset==0.1.6"],
|
"requirements": ["wolf_smartset==0.1.8"],
|
||||||
"codeowners": ["@adamkrol93"]
|
"codeowners": ["@adamkrol93"]
|
||||||
}
|
}
|
||||||
|
@ -2286,7 +2286,7 @@ withings-api==2.1.6
|
|||||||
wled==0.4.4
|
wled==0.4.4
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf_smartset==0.1.6
|
wolf_smartset==0.1.8
|
||||||
|
|
||||||
# homeassistant.components.xbee
|
# homeassistant.components.xbee
|
||||||
xbee-helper==0.0.7
|
xbee-helper==0.0.7
|
||||||
|
@ -1100,7 +1100,7 @@ withings-api==2.1.6
|
|||||||
wled==0.4.4
|
wled==0.4.4
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf_smartset==0.1.6
|
wolf_smartset==0.1.8
|
||||||
|
|
||||||
# homeassistant.components.xbox
|
# homeassistant.components.xbox
|
||||||
xbox-webapi==2.0.8
|
xbox-webapi==2.0.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user