1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-12 09:07:59 +01:00

Adds disable

This commit is contained in:
G Johansson
2026-07-08 13:31:03 +00:00
parent 0f1cddaef8
commit 964ac98676
4 changed files with 7 additions and 0 deletions
@@ -90,6 +90,7 @@ class BoschAlarmAreaEntity(BoschAlarmEntity):
self._area.status_observer.attach(self.schedule_update_ha_state)
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Stop observing state changes."""
await super().async_will_remove_from_hass()
@@ -124,6 +125,7 @@ class BoschAlarmPointEntity(BoschAlarmEntity):
self._point.status_observer.attach(self.schedule_update_ha_state)
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Stop observing state changes."""
await super().async_will_remove_from_hass()
@@ -153,6 +155,7 @@ class BoschAlarmDoorEntity(BoschAlarmEntity):
self._door.status_observer.attach(self.schedule_update_ha_state)
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Stop observing state changes."""
await super().async_will_remove_from_hass()
@@ -182,6 +185,7 @@ class BoschAlarmOutputEntity(BoschAlarmEntity):
self._output.status_observer.attach(self.schedule_update_ha_state)
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Stop observing state changes."""
await super().async_will_remove_from_hass()
@@ -126,6 +126,7 @@ class MqttBinarySensor(MqttEntity, BinarySensorEntity, RestoreEntity):
)
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Clean up expire triggers."""
if self._expiration_trigger:
+1
View File
@@ -1573,6 +1573,7 @@ class MqttEntity(
self.async_write_ha_state()
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Unsubscribe when removed."""
self._sub_state = subscription.async_unsubscribe_topics(
+1
View File
@@ -239,6 +239,7 @@ class MqttSensor(MqttEntity, RestoreSensor):
)
@override
# pylint: disable-next=home-assistant-missing-super-call
async def async_will_remove_from_hass(self) -> None:
"""Remove expire triggers."""
if self._expiration_trigger: