Change breaking version for battery props in vacuum (#147956)

This commit is contained in:
G Johansson 2025-07-02 19:06:56 +02:00 committed by GitHub
parent 80a1e0e4cd
commit e31470ba5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View File

@ -327,7 +327,7 @@ class StateVacuumEntity(
" instead with a correct device class and link it to the same device", " instead with a correct device class and link it to the same device",
core_integration_behavior=ReportBehavior.LOG, core_integration_behavior=ReportBehavior.LOG,
custom_integration_behavior=ReportBehavior.LOG, custom_integration_behavior=ReportBehavior.LOG,
breaks_in_ha_version="2026.7", breaks_in_ha_version="2026.8",
integration_domain=self.platform.platform_name if self.platform else None, integration_domain=self.platform.platform_name if self.platform else None,
exclude_integrations={DOMAIN}, exclude_integrations={DOMAIN},
) )
@ -346,7 +346,7 @@ class StateVacuumEntity(
core_behavior=ReportBehavior.LOG, core_behavior=ReportBehavior.LOG,
core_integration_behavior=ReportBehavior.LOG, core_integration_behavior=ReportBehavior.LOG,
custom_integration_behavior=ReportBehavior.LOG, custom_integration_behavior=ReportBehavior.LOG,
breaks_in_ha_version="2026.7", breaks_in_ha_version="2026.8",
integration_domain=self.platform.platform_name if self.platform else None, integration_domain=self.platform.platform_name if self.platform else None,
exclude_integrations={DOMAIN}, exclude_integrations={DOMAIN},
) )

View File

@ -488,14 +488,14 @@ async def test_vacuum_log_deprecated_battery_properties(
assert ( assert (
"Detected that custom integration 'test' is setting the battery_icon which has been deprecated." "Detected that custom integration 'test' is setting the battery_icon which has been deprecated."
" Integration test should implement a sensor instead with a correct device class and link it" " Integration test should implement a sensor instead with a correct device class and link it"
" to the same device. This will stop working in Home Assistant 2026.7," " to the same device. This will stop working in Home Assistant 2026.8,"
" please report it to the author of the 'test' custom integration" " please report it to the author of the 'test' custom integration"
in caplog.text in caplog.text
) )
assert ( assert (
"Detected that custom integration 'test' is setting the battery_level which has been deprecated." "Detected that custom integration 'test' is setting the battery_level which has been deprecated."
" Integration test should implement a sensor instead with a correct device class and link it" " Integration test should implement a sensor instead with a correct device class and link it"
" to the same device. This will stop working in Home Assistant 2026.7," " to the same device. This will stop working in Home Assistant 2026.8,"
" please report it to the author of the 'test' custom integration" " please report it to the author of the 'test' custom integration"
in caplog.text in caplog.text
) )
@ -543,14 +543,14 @@ async def test_vacuum_log_deprecated_battery_properties_using_attr(
assert ( assert (
"Detected that custom integration 'test' is setting the battery_level which has been deprecated." "Detected that custom integration 'test' is setting the battery_level which has been deprecated."
" Integration test should implement a sensor instead with a correct device class and link it to" " Integration test should implement a sensor instead with a correct device class and link it to"
" the same device. This will stop working in Home Assistant 2026.7," " the same device. This will stop working in Home Assistant 2026.8,"
" please report it to the author of the 'test' custom integration" " please report it to the author of the 'test' custom integration"
in caplog.text in caplog.text
) )
assert ( assert (
"Detected that custom integration 'test' is setting the battery_icon which has been deprecated." "Detected that custom integration 'test' is setting the battery_icon which has been deprecated."
" Integration test should implement a sensor instead with a correct device class and link it to" " Integration test should implement a sensor instead with a correct device class and link it to"
" the same device. This will stop working in Home Assistant 2026.7," " the same device. This will stop working in Home Assistant 2026.8,"
" please report it to the author of the 'test' custom integration" " please report it to the author of the 'test' custom integration"
in caplog.text in caplog.text
) )
@ -563,14 +563,14 @@ async def test_vacuum_log_deprecated_battery_properties_using_attr(
assert ( assert (
"Detected that custom integration 'test' is setting the battery_level which has been deprecated." "Detected that custom integration 'test' is setting the battery_level which has been deprecated."
" Integration test should implement a sensor instead with a correct device class and link it to" " Integration test should implement a sensor instead with a correct device class and link it to"
" the same device. This will stop working in Home Assistant 2026.7," " the same device. This will stop working in Home Assistant 2026.8,"
" please report it to the author of the 'test' custom integration" " please report it to the author of the 'test' custom integration"
not in caplog.text not in caplog.text
) )
assert ( assert (
"Detected that custom integration 'test' is setting the battery_icon which has been deprecated." "Detected that custom integration 'test' is setting the battery_icon which has been deprecated."
" Integration test should implement a sensor instead with a correct device class and link it to" " Integration test should implement a sensor instead with a correct device class and link it to"
" the same device. This will stop working in Home Assistant 2026.7," " the same device. This will stop working in Home Assistant 2026.8,"
" please report it to the author of the 'test' custom integration" " please report it to the author of the 'test' custom integration"
not in caplog.text not in caplog.text
) )
@ -609,7 +609,7 @@ async def test_vacuum_log_deprecated_battery_supported_feature(
assert ( assert (
"Detected that custom integration 'test' is setting the battery supported feature" "Detected that custom integration 'test' is setting the battery supported feature"
" which has been deprecated. Integration test should remove this as part of migrating" " which has been deprecated. Integration test should remove this as part of migrating"
" the battery level and icon to a sensor. This will stop working in Home Assistant 2026.7" " the battery level and icon to a sensor. This will stop working in Home Assistant 2026.8"
", please report it to the author of the 'test' custom integration" ", please report it to the author of the 'test' custom integration"
in caplog.text in caplog.text
) )