1 """Demo platform that has two fake remotes."""
3 from __future__
import annotations
5 from collections.abc
import Iterable
17 config_entry: ConfigEntry,
18 async_add_entities: AddEntitiesCallback,
20 """Set up the Demo config entry."""
30 """Representation of a demo remote."""
32 _attr_should_poll =
False
34 def __init__(self, name: str |
None, state: bool) ->
None:
35 """Initialize the Demo Remote."""
42 """Return device state attributes."""
48 """Turn the remote on."""
53 """Turn the remote off."""
57 def send_command(self, command: Iterable[str], **kwargs: Any) ->
None:
58 """Send a command to a device."""
dict[str, Any]|None extra_state_attributes(self)
None turn_on(self, **Any kwargs)
None send_command(self, Iterable[str] command, **Any kwargs)
None __init__(self, str|None name, bool state)
None turn_off(self, **Any kwargs)
None schedule_update_ha_state(self, bool force_refresh=False)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)