mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Update tests
This commit is contained in:
parent
8842f7a421
commit
8e7cf07dd8
@ -236,7 +236,6 @@ async def test_legacy_subscription_repair_flow_timeout(
|
|||||||
"handler": "cloud",
|
"handler": "cloud",
|
||||||
"reason": "operation_took_too_long",
|
"reason": "operation_took_too_long",
|
||||||
"description_placeholders": None,
|
"description_placeholders": None,
|
||||||
"result": None,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert issue_registry.async_get_issue(
|
assert issue_registry.async_get_issue(
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
# ---
|
# ---
|
||||||
# name: test_options[create_entry]
|
# name: test_options[create_entry]
|
||||||
FlowResultSnapshot({
|
FlowResultSnapshot({
|
||||||
'result': True,
|
|
||||||
'type': <FlowResultType.CREATE_ENTRY: 'create_entry'>,
|
'type': <FlowResultType.CREATE_ENTRY: 'create_entry'>,
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
|
@ -39,7 +39,6 @@
|
|||||||
# ---
|
# ---
|
||||||
# name: test_options[create_entry]
|
# name: test_options[create_entry]
|
||||||
FlowResultSnapshot({
|
FlowResultSnapshot({
|
||||||
'result': True,
|
|
||||||
'type': <FlowResultType.CREATE_ENTRY: 'create_entry'>,
|
'type': <FlowResultType.CREATE_ENTRY: 'create_entry'>,
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
|
@ -471,7 +471,6 @@ async def test_mount_failed_repair_flow_error(
|
|||||||
"flow_id": flow_id,
|
"flow_id": flow_id,
|
||||||
"handler": "hassio",
|
"handler": "hassio",
|
||||||
"reason": "apply_suggestion_fail",
|
"reason": "apply_suggestion_fail",
|
||||||
"result": None,
|
|
||||||
"description_placeholders": None,
|
"description_placeholders": None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,7 +211,6 @@ async def test_options_flow(
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert create_result["type"] is FlowResultType.CREATE_ENTRY
|
assert create_result["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert create_result["result"] is True
|
|
||||||
|
|
||||||
assert config_entry.data == {
|
assert config_entry.data == {
|
||||||
"firmware": "ezsp",
|
"firmware": "ezsp",
|
||||||
|
@ -406,7 +406,6 @@ async def test_firmware_options_flow(
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert create_result["type"] is FlowResultType.CREATE_ENTRY
|
assert create_result["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert create_result["result"] is True
|
|
||||||
|
|
||||||
assert config_entry.data == {
|
assert config_entry.data == {
|
||||||
"firmware": fw_type.value,
|
"firmware": fw_type.value,
|
||||||
|
@ -110,7 +110,6 @@ async def test_options_reconfigure(
|
|||||||
CONF_CANDLE_LIGHT_MINUTES: DEFAULT_CANDLE_LIGHT + 1,
|
CONF_CANDLE_LIGHT_MINUTES: DEFAULT_CANDLE_LIGHT + 1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
assert result["result"]
|
|
||||||
|
|
||||||
# The value of the "upcoming_shabbat_candle_lighting" sensor should be the new value
|
# The value of the "upcoming_shabbat_candle_lighting" sensor should be the new value
|
||||||
assert config_entry.options[CONF_CANDLE_LIGHT_MINUTES] == DEFAULT_CANDLE_LIGHT + 1
|
assert config_entry.options[CONF_CANDLE_LIGHT_MINUTES] == DEFAULT_CANDLE_LIGHT + 1
|
||||||
|
@ -599,7 +599,6 @@ async def test_fix_issue_aborted(
|
|||||||
"handler": "fake_integration",
|
"handler": "fake_integration",
|
||||||
"reason": "not_given",
|
"reason": "not_given",
|
||||||
"description_placeholders": None,
|
"description_placeholders": None,
|
||||||
"result": None,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await ws_client.send_json({"id": 4, "type": "repairs/list_issues"})
|
await ws_client.send_json({"id": 4, "type": "repairs/list_issues"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user