Skip to content

Commit

Permalink
🕹️ fix deprecated for remote (#1613 #1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Aug 25, 2024
1 parent 7deb16d commit 35e3bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from homeassistant.components.remote import (
DOMAIN as ENTITY_DOMAIN,
RemoteEntity,
RemoteEntityFeature,
)

from . import (
Expand Down Expand Up @@ -78,6 +79,7 @@ def __init__(self, config, miot_spec: MiotSpec):
token = config.get(CONF_TOKEN)
self._device = ChuangmiIr(host, token)
self._attr_should_poll = False
self._supported_features = RemoteEntityFeature.LEARN_COMMAND
self._translations = get_translations('ir_devices')

async def async_added_to_hass(self):
Expand Down

0 comments on commit 35e3bf3

Please # to comment.