Skip to content

Commit e31470b

Browse files
Change breaking version for battery props in vacuum (home-assistant#147956)
1 parent 80a1e0e commit e31470b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

homeassistant/components/vacuum/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _report_deprecated_battery_properties(self, property: str) -> None:
327327
" instead with a correct device class and link it to the same device",
328328
core_integration_behavior=ReportBehavior.LOG,
329329
custom_integration_behavior=ReportBehavior.LOG,
330-
breaks_in_ha_version="2026.7",
330+
breaks_in_ha_version="2026.8",
331331
integration_domain=self.platform.platform_name if self.platform else None,
332332
exclude_integrations={DOMAIN},
333333
)
@@ -346,7 +346,7 @@ def _report_deprecated_battery_feature(self) -> None:
346346
core_behavior=ReportBehavior.LOG,
347347
core_integration_behavior=ReportBehavior.LOG,
348348
custom_integration_behavior=ReportBehavior.LOG,
349-
breaks_in_ha_version="2026.7",
349+
breaks_in_ha_version="2026.8",
350350
integration_domain=self.platform.platform_name if self.platform else None,
351351
exclude_integrations={DOMAIN},
352352
)

tests/components/vacuum/test_init.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -488,14 +488,14 @@ def battery_icon(self) -> str:
488488
assert (
489489
"Detected that custom integration 'test' is setting the battery_icon which has been deprecated."
490490
" Integration test should implement a sensor instead with a correct device class and link it"
491-
" to the same device. This will stop working in Home Assistant 2026.7,"
491+
" to the same device. This will stop working in Home Assistant 2026.8,"
492492
" please report it to the author of the 'test' custom integration"
493493
in caplog.text
494494
)
495495
assert (
496496
"Detected that custom integration 'test' is setting the battery_level which has been deprecated."
497497
" Integration test should implement a sensor instead with a correct device class and link it"
498-
" to the same device. This will stop working in Home Assistant 2026.7,"
498+
" to the same device. This will stop working in Home Assistant 2026.8,"
499499
" please report it to the author of the 'test' custom integration"
500500
in caplog.text
501501
)
@@ -543,14 +543,14 @@ def start(self) -> None:
543543
assert (
544544
"Detected that custom integration 'test' is setting the battery_level which has been deprecated."
545545
" Integration test should implement a sensor instead with a correct device class and link it to"
546-
" the same device. This will stop working in Home Assistant 2026.7,"
546+
" the same device. This will stop working in Home Assistant 2026.8,"
547547
" please report it to the author of the 'test' custom integration"
548548
in caplog.text
549549
)
550550
assert (
551551
"Detected that custom integration 'test' is setting the battery_icon which has been deprecated."
552552
" Integration test should implement a sensor instead with a correct device class and link it to"
553-
" the same device. This will stop working in Home Assistant 2026.7,"
553+
" the same device. This will stop working in Home Assistant 2026.8,"
554554
" please report it to the author of the 'test' custom integration"
555555
in caplog.text
556556
)
@@ -563,14 +563,14 @@ def start(self) -> None:
563563
assert (
564564
"Detected that custom integration 'test' is setting the battery_level which has been deprecated."
565565
" Integration test should implement a sensor instead with a correct device class and link it to"
566-
" the same device. This will stop working in Home Assistant 2026.7,"
566+
" the same device. This will stop working in Home Assistant 2026.8,"
567567
" please report it to the author of the 'test' custom integration"
568568
not in caplog.text
569569
)
570570
assert (
571571
"Detected that custom integration 'test' is setting the battery_icon which has been deprecated."
572572
" Integration test should implement a sensor instead with a correct device class and link it to"
573-
" the same device. This will stop working in Home Assistant 2026.7,"
573+
" the same device. This will stop working in Home Assistant 2026.8,"
574574
" please report it to the author of the 'test' custom integration"
575575
not in caplog.text
576576
)
@@ -609,7 +609,7 @@ async def test_vacuum_log_deprecated_battery_supported_feature(
609609
assert (
610610
"Detected that custom integration 'test' is setting the battery supported feature"
611611
" which has been deprecated. Integration test should remove this as part of migrating"
612-
" the battery level and icon to a sensor. This will stop working in Home Assistant 2026.7"
612+
" the battery level and icon to a sensor. This will stop working in Home Assistant 2026.8"
613613
", please report it to the author of the 'test' custom integration"
614614
in caplog.text
615615
)

0 commit comments

Comments
 (0)