mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Change breaking version for battery props in vacuum (#147956)
This commit is contained in:
parent
80a1e0e4cd
commit
e31470ba5b
@ -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},
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user