diff --git a/homeassistant/components/rflink/__init__.py b/homeassistant/components/rflink/__init__.py index f66aafe3753..917280f3c81 100644 --- a/homeassistant/components/rflink/__init__.py +++ b/homeassistant/components/rflink/__init__.py @@ -1,4 +1,6 @@ """Support for Rflink devices.""" +from __future__ import annotations + import asyncio from collections import defaultdict import logging @@ -315,6 +317,7 @@ class RflinkDevice(Entity): """ platform = None + _state: bool | None = None _available = True def __init__( @@ -344,7 +347,6 @@ class RflinkDevice(Entity): self._nogroup_aliases = nogroup_aliases self._should_fire_event = fire_event self._signal_repetitions = signal_repetitions - self._state = None @callback def handle_event_callback(self, event): diff --git a/homeassistant/components/rflink/cover.py b/homeassistant/components/rflink/cover.py index b716ec5dcb7..d228c73ba2d 100644 --- a/homeassistant/components/rflink/cover.py +++ b/homeassistant/components/rflink/cover.py @@ -125,8 +125,6 @@ async def async_setup_platform( class RflinkCover(RflinkCommand, CoverEntity, RestoreEntity): """Rflink entity which can switch on/stop/off (eg: cover).""" - _state: bool | None - async def async_added_to_hass(self) -> None: """Restore RFLink cover state (OPEN/CLOSE).""" await super().async_added_to_hass()