mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add timeout to RainMachine login (#19476)
* Add timeout to RainMachine login * Moved timeout logic to regenmaschine * Moving logic back into try/except * Bumped requirements
This commit is contained in:
parent
dd885a456e
commit
c15445159d
@ -24,7 +24,7 @@ from .config_flow import configured_instances
|
|||||||
from .const import (
|
from .const import (
|
||||||
DATA_CLIENT, DEFAULT_PORT, DEFAULT_SCAN_INTERVAL, DEFAULT_SSL, DOMAIN)
|
DATA_CLIENT, DEFAULT_PORT, DEFAULT_SCAN_INTERVAL, DEFAULT_SSL, DOMAIN)
|
||||||
|
|
||||||
REQUIREMENTS = ['regenmaschine==1.0.7']
|
REQUIREMENTS = ['regenmaschine==1.1.0']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -164,8 +164,7 @@ async def async_setup_entry(hass, config_entry):
|
|||||||
CONF_MONITORED_CONDITIONS, list(BINARY_SENSORS)),
|
CONF_MONITORED_CONDITIONS, list(BINARY_SENSORS)),
|
||||||
config_entry.data.get(CONF_SENSORS, {}).get(
|
config_entry.data.get(CONF_SENSORS, {}).get(
|
||||||
CONF_MONITORED_CONDITIONS, list(SENSORS)),
|
CONF_MONITORED_CONDITIONS, list(SENSORS)),
|
||||||
config_entry.data.get(CONF_ZONE_RUN_TIME, DEFAULT_ZONE_RUN)
|
config_entry.data.get(CONF_ZONE_RUN_TIME, DEFAULT_ZONE_RUN))
|
||||||
)
|
|
||||||
await rainmachine.async_update()
|
await rainmachine.async_update()
|
||||||
except RainMachineError as err:
|
except RainMachineError as err:
|
||||||
_LOGGER.error('An error occurred: %s', err)
|
_LOGGER.error('An error occurred: %s', err)
|
||||||
|
@ -1390,7 +1390,7 @@ raincloudy==0.0.5
|
|||||||
# raspihats==2.2.3
|
# raspihats==2.2.3
|
||||||
|
|
||||||
# homeassistant.components.rainmachine
|
# homeassistant.components.rainmachine
|
||||||
regenmaschine==1.0.7
|
regenmaschine==1.1.0
|
||||||
|
|
||||||
# homeassistant.components.python_script
|
# homeassistant.components.python_script
|
||||||
restrictedpython==4.0b7
|
restrictedpython==4.0b7
|
||||||
|
@ -224,7 +224,7 @@ pyunifi==2.13
|
|||||||
pywebpush==1.6.0
|
pywebpush==1.6.0
|
||||||
|
|
||||||
# homeassistant.components.rainmachine
|
# homeassistant.components.rainmachine
|
||||||
regenmaschine==1.0.7
|
regenmaschine==1.1.0
|
||||||
|
|
||||||
# homeassistant.components.python_script
|
# homeassistant.components.python_script
|
||||||
restrictedpython==4.0b7
|
restrictedpython==4.0b7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user