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
2 changes: 1 addition & 1 deletion homeassistant/components/anthropic/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def async_step_init(
] = bool

if user_input is not None:
if not user_input.get(CONF_LLM_HASS_API):
if user_input.get(CONF_LLM_HASS_API) is None:
user_input.pop(CONF_LLM_HASS_API, None)

if user_input[CONF_RECOMMENDED]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async def async_step_init(
] = bool

if user_input is not None:
if not user_input.get(CONF_LLM_HASS_API):
if user_input.get(CONF_LLM_HASS_API) is None:
user_input.pop(CONF_LLM_HASS_API, None)

if user_input[CONF_RECOMMENDED]:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/opower/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_polling",
"loggers": ["opower"],
"quality_scale": "platinum",
"requirements": ["opower==0.19.0"]
"requirements": ["opower==0.20.0"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/rainforest_eagle/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"integration_type": "device",
"iot_class": "local_polling",
"loggers": ["aioeagle", "eagle100"],
"requirements": ["aioeagle==1.1.0", "eagle100==0.1.1"]
"requirements": ["aioeagle==1.1.1", "eagle100==0.1.1"]
}
4 changes: 2 additions & 2 deletions requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tests/components/anthropic/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ async def test_invalid_model(
{
CONF_RECOMMENDED: False,
CONF_PROMPT: "Speak like a pirate",
CONF_LLM_HASS_API: [],
CONF_PROMPT_CACHING: "off",
CONF_CHAT_MODEL: "claude-haiku-4-5",
CONF_MAX_TOKENS: DEFAULT[CONF_MAX_TOKENS],
Expand Down Expand Up @@ -695,6 +696,7 @@ async def test_invalid_model(
{
CONF_RECOMMENDED: False,
CONF_PROMPT: "Speak like a pirate",
CONF_LLM_HASS_API: [],
CONF_PROMPT_CACHING: "prompt",
CONF_CHAT_MODEL: "claude-opus-4-7",
CONF_MAX_TOKENS: DEFAULT[CONF_MAX_TOKENS],
Expand Down Expand Up @@ -728,6 +730,7 @@ async def test_invalid_model(
{
CONF_RECOMMENDED: False,
CONF_PROMPT: "Speak like a pirate",
CONF_LLM_HASS_API: [],
CONF_PROMPT_CACHING: "automatic",
CONF_CHAT_MODEL: "claude-haiku-4-5",
CONF_MAX_TOKENS: DEFAULT[CONF_MAX_TOKENS],
Expand Down
19 changes: 19 additions & 0 deletions tests/components/openai_conversation/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,25 @@ async def test_form_invalid_auth(hass: HomeAssistant, side_effect, error) -> Non
@pytest.mark.parametrize(
("current_options", "new_options", "expected_options"),
[
( # Test clearing every llm api is stored as an empty list
{
CONF_RECOMMENDED: True,
CONF_LLM_HASS_API: ["assist"],
CONF_PROMPT: "",
},
(
{
CONF_RECOMMENDED: True,
CONF_LLM_HASS_API: [],
CONF_PROMPT: "",
},
),
{
CONF_RECOMMENDED: True,
CONF_LLM_HASS_API: [],
CONF_PROMPT: "",
},
),
( # Test converting single llm api format to list
{
CONF_RECOMMENDED: True,
Expand Down
Loading