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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user