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