Tweak language for remote turn_on, turn_off, toggle services (#1002)

This commit is contained in:
Erik Montnemery 2021-07-12 09:47:00 +02:00 committed by GitHub
parent 395f1e0fa3
commit 83d945a0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,10 +34,10 @@ An activity is a predefined activity or macro that puts the remote in a specific
class MyRemote(RemoteEntity):
def turn_on(self, activity: str = None, **kwargs):
"""Turn the remote on."""
"""Send the power on command."""
async def async_turn_on(self, activity: str = None, **kwargs):
"""Turn the remote on."""
"""Send the power on command."""
```
### Turn Off Command
@ -46,10 +46,10 @@ class MyRemote(RemoteEntity):
class MyRemote(RemoteEntity):
def turn_off(self, activity: str = None, **kwargs):
"""Turn the remote off."""
"""Send the power off command."""
async def async_turn_off(self, activity: str = None, **kwargs):
"""Turn the remote off."""
"""Send the power off command."""
```
### Toggle Command
@ -58,10 +58,10 @@ class MyRemote(RemoteEntity):
class MyRemote(RemoteEntity):
def toggle(self, activity: str = None, **kwargs):
"""Toggle the remote."""
"""Toggle a device."""
async def async_toggle(self, activity: str = None, **kwargs):
"""Toggle the remote."""
"""Toggle a device."""
```
### Send Command