Sam Welek e47096e7d5
Fixes some Typos in the Documentation (#678)
* Fixing typo on development_enviornment.md

* Fixing various typos throughout the docs, it's not much but it's honest work
2020-10-11 15:47:52 +01:00

1.0 KiB

title sidebar_label
Remote Entity Remote

Properties

:::tip Properties should always only return information from memory and not do I/O (like network requests). Implement update() or async_update() to fetch data. :::

Name Type Default Description

Supported Features

Constant Description
SUPPORT_LEARN_COMMAND Entity allows learning commands from devices.

Methods

Send Command

class MyRemote(RemoteEntity):

    def send_command(self, command: Iterable[str], **kwargs):
        """Send commands to a device."""

    async def async_send_command(self, command: Iterable[str], **kwargs):
        """Send commands to a device."""

Learn Command

Only implement this method if the flag SUPPORT_LEARN_COMMAND is set.

class MyRemote(RemoteEntity):

    def learn_command(self, **kwargs):
        """Learn a command from a device."""

    async def async_learn_command(self, **kwargs):
        """Learn a command from a device."""