Allow creating fixable repairs issues without flows (#76224)
* Allow creating fixable repairs issues without flows * Add test * Adjust test
This commit is contained in:
parent
861b694cff
commit
b366090175
8 changed files with 140 additions and 42 deletions
|
@ -129,6 +129,20 @@ async def test_issues_created(hass, hass_client, hass_ws_client):
|
|||
"translation_key": "unfixable_problem",
|
||||
"translation_placeholders": None,
|
||||
},
|
||||
{
|
||||
"breaks_in_ha_version": None,
|
||||
"created": ANY,
|
||||
"dismissed_version": None,
|
||||
"domain": "demo",
|
||||
"ignored": False,
|
||||
"is_fixable": True,
|
||||
"issue_domain": None,
|
||||
"issue_id": "bad_psu",
|
||||
"learn_more_url": "https://www.youtube.com/watch?v=b9rntRxLlbU",
|
||||
"severity": "critical",
|
||||
"translation_key": "bad_psu",
|
||||
"translation_placeholders": None,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -164,7 +178,7 @@ async def test_issues_created(hass, hass_client, hass_ws_client):
|
|||
"description_placeholders": None,
|
||||
"flow_id": flow_id,
|
||||
"handler": "demo",
|
||||
"title": "Fixed issue",
|
||||
"title": "",
|
||||
"type": "create_entry",
|
||||
"version": 1,
|
||||
}
|
||||
|
@ -203,5 +217,19 @@ async def test_issues_created(hass, hass_client, hass_ws_client):
|
|||
"translation_key": "unfixable_problem",
|
||||
"translation_placeholders": None,
|
||||
},
|
||||
{
|
||||
"breaks_in_ha_version": None,
|
||||
"created": ANY,
|
||||
"dismissed_version": None,
|
||||
"domain": "demo",
|
||||
"ignored": False,
|
||||
"is_fixable": True,
|
||||
"issue_domain": None,
|
||||
"issue_id": "bad_psu",
|
||||
"learn_more_url": "https://www.youtube.com/watch?v=b9rntRxLlbU",
|
||||
"severity": "critical",
|
||||
"translation_key": "bad_psu",
|
||||
"translation_placeholders": None,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue