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
4 changes: 2 additions & 2 deletions homeassistant/components/tellduslive/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from homeassistant import config_entries
from homeassistant.const import CONF_HOST
from homeassistant.util.json import load_json
from homeassistant.util.json import load_json_object

from .const import (
APPLICATION_NAME,
Expand Down Expand Up @@ -137,7 +137,7 @@ async def async_step_import(self, user_input):
return await self.async_step_user()

conf = await self.hass.async_add_executor_job(
load_json, self.hass.config.path(TELLDUS_CONFIG_FILE)
load_json_object, self.hass.config.path(TELLDUS_CONFIG_FILE)
)
host = next(iter(conf))

Expand Down
4 changes: 2 additions & 2 deletions tests/components/tellduslive/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def test_step_import_load_json_matching_host(
flow = init_config_flow(hass)

with patch(
"homeassistant.components.tellduslive.config_flow.load_json",
"homeassistant.components.tellduslive.config_flow.load_json_object",
return_value={"tellduslive": {}},
), patch("os.path.isfile"):
result = await flow.async_step_import(
Expand All @@ -156,7 +156,7 @@ async def test_step_import_load_json(hass: HomeAssistant, mock_tellduslive) -> N
flow = init_config_flow(hass)

with patch(
"homeassistant.components.tellduslive.config_flow.load_json",
"homeassistant.components.tellduslive.config_flow.load_json_object",
return_value={"localhost": {}},
), patch("os.path.isfile"):
result = await flow.async_step_import(
Expand Down