1 """Remote control support for Bravia TV."""
3 from __future__
import annotations
5 from collections.abc
import Iterable
12 from .
import BraviaTVConfigEntry
13 from .entity
import BraviaTVEntity
18 config_entry: BraviaTVConfigEntry,
19 async_add_entities: AddEntitiesCallback,
21 """Set up Bravia TV Remote from a config entry."""
23 coordinator = config_entry.runtime_data
24 unique_id = config_entry.unique_id
25 assert unique_id
is not None
31 """Representation of a Bravia TV Remote."""
37 """Return true if device is on."""
38 return self.coordinator.is_on
41 """Turn the device on."""
45 """Turn the device off."""
49 """Send a command to device."""
50 repeats = kwargs[ATTR_NUM_REPEATS]
None async_turn_on(self, **Any kwargs)
None async_turn_off(self, **Any kwargs)
None async_send_command(self, Iterable[str] command, **Any kwargs)
None async_setup_entry(HomeAssistant hass, BraviaTVConfigEntry config_entry, AddEntitiesCallback async_add_entities)