2020import logging
2121from typing import Any
2222
23- from infrared_protocols import Command as InfraredCommand
23+ from infrared_protocols . commands import Command as InfraredCommand
2424
25- from homeassistant .components .infrared import InfraredEntity
25+ from homeassistant .components .infrared import InfraredEmitterEntity
2626from homeassistant .config_entries import ConfigSubentry
2727from homeassistant .core import HomeAssistant
2828from homeassistant .exceptions import HomeAssistantError
@@ -43,7 +43,7 @@ async def async_setup_entry(
4343 """Set up Unfolded Circle IR emitter entities."""
4444 coordinator = config_entry .runtime_data .coordinator
4545 remote_api = coordinator .api
46- entities : list [InfraredEntity ] = []
46+ entities : list [InfraredEmitterEntity ] = []
4747
4848 # ── 1. DOCK emitters ──────────────────────────────────────────────────────
4949 for subentry_id , dock_coordinator in config_entry .runtime_data .docks .items ():
@@ -132,7 +132,7 @@ async def async_setup_entry(
132132# ── Entity implementations ────────────────────────────────────────────────────
133133
134134
135- class DockPortInfraredEntity (UnfoldedCircleDockEntity , InfraredEntity ):
135+ class DockPortInfraredEntity (UnfoldedCircleDockEntity , InfraredEmitterEntity ):
136136 """IR emitter entity for a specific port on an Unfolded Circle Dock.
137137
138138 One entity is created per port (including the "Default (all outputs)" port).
@@ -178,7 +178,7 @@ async def async_send_command(self, command: InfraredCommand) -> None:
178178 ) from err
179179
180180
181- class RemoteInternalInfraredEntity (UnfoldedCircleEntity , InfraredEntity ):
181+ class RemoteInternalInfraredEntity (UnfoldedCircleEntity , InfraredEmitterEntity ):
182182 """IR emitter entity for the Unfolded Circle Remote's built-in emitter.
183183
184184 The emitter entry has type=="INTERNAL" and device_id=="internal".
@@ -218,7 +218,7 @@ async def async_send_command(self, command: InfraredCommand) -> None:
218218 ) from err
219219
220220
221- class ExternalInfraredEntity (UnfoldedCircleEntity , InfraredEntity ):
221+ class ExternalInfraredEntity (UnfoldedCircleEntity , InfraredEmitterEntity ):
222222 """IR emitter entity for a specific port on a third-party emitter connected to the remote.
223223
224224 External emitters (e.g. Broadlink RM Pro) are added via driver integrations
0 commit comments