1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add ability to set HA breaking version in report_usage (#130858)

* Add ability to set breaking version in report_usage

* Adjust tests

* Adjust test

* Adjust tests

* Rename breaks_in_version => breaks_in_ha_version
This commit is contained in:
epenet
2024-11-20 21:41:57 +01:00
committed by GitHub
parent 5539228ba2
commit deeb55ac50
11 changed files with 78 additions and 36 deletions

View File

@@ -138,8 +138,8 @@ async def test_warning_close_session_integration(
assert (
"Detected that integration 'hue' closes the Home Assistant httpx client at "
"homeassistant/components/hue/light.py, line 23: await session.aclose(), "
"please create a bug report at https://github.com/home-assistant/core/issues?"
"homeassistant/components/hue/light.py, line 23: await session.aclose(). "
"Please create a bug report at https://github.com/home-assistant/core/issues?"
"q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+hue%22"
) in caplog.text
@@ -182,6 +182,6 @@ async def test_warning_close_session_custom(
await httpx_session.aclose()
assert (
"Detected that custom integration 'hue' closes the Home Assistant httpx client "
"at custom_components/hue/light.py, line 23: await session.aclose(), "
"please report it to the author of the 'hue' custom integration"
"at custom_components/hue/light.py, line 23: await session.aclose(). "
"Please report it to the author of the 'hue' custom integration"
) in caplog.text