Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions homeassistant/components/nexia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
username = conf[CONF_USERNAME]
password = conf[CONF_PASSWORD]

state_file = hass.config.path(f"nexia_config_{username}.conf")

try:
nexia_home = await hass.async_add_executor_job(
partial(
NexiaHome,
username=username,
password=password,
device_name=hass.config.location_name,
state_file=state_file,
)
)
except ConnectTimeout as ex:
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/nexia/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ async def validate_input(hass: core.HomeAssistant, data):

Data has the keys from DATA_SCHEMA with values provided by the user.
"""

state_file = hass.config.path(f"nexia_config_{data[CONF_USERNAME]}.conf")
try:
nexia_home = NexiaHome(
username=data[CONF_USERNAME],
password=data[CONF_PASSWORD],
auto_login=False,
auto_update=False,
device_name=hass.config.location_name,
state_file=state_file,
)
await hass.async_add_executor_job(nexia_home.login)
except ConnectTimeout as ex:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/nexia/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "nexia",
"name": "Nexia",
"requirements": ["nexia==0.9.1"],
"requirements": ["nexia==0.9.2"],
"codeowners": ["@ryannazaretian", "@bdraco"],
"documentation": "https://www.home-assistant.io/integrations/nexia",
"config_flow": true
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ netdisco==2.6.0
neurio==0.3.1

# homeassistant.components.nexia
nexia==0.9.1
nexia==0.9.2

# homeassistant.components.nextcloud
nextcloudmonitor==1.1.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ nessclient==0.9.15
netdisco==2.6.0

# homeassistant.components.nexia
nexia==0.9.1
nexia==0.9.2

# homeassistant.components.nsw_fuel_station
nsw-fuel-api-client==1.0.10
Expand Down