Allow creating fixable repairs issues without flows (#76224)

* Allow creating fixable repairs issues without flows

* Add test

* Adjust test
This commit is contained in:
Erik Montnemery 2022-08-05 12:07:51 +02:00 committed by GitHub
parent 861b694cff
commit b366090175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 140 additions and 42 deletions

View file

@ -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,
},
]
}