* Add tests * Add FileSync test * Fill in services.yaml for 'androidtv.adb_filesync' service * Update example paths in services.yaml * Bump androidtv to 0.0.37 * Bump androidtv to 0.0.37 * Bump androidtv to 0.0.37 * Import LockNotAcquiredException * Import LockNotAcquiredException from androidtv.exceptions * Rename 'host' to 'address' * Add a logging statement when an ADB command is skipped * Check hass.config.is_allowed_path(local_path) * Add return * Fix pylint * Reduce duplicated code (AndroidTVDevice vs. FireTVDevice) * Split 'adb_filesync' service into 'download' and 'upload' services * Don't use '.get()' for required data; return if the services are already registered * Replace "command" with ATTR_COMMAND * Don't try to connect to a device if it is a duplicate
36 lines
1.4 KiB
YAML
36 lines
1.4 KiB
YAML
# Describes the format for available Android TV and Fire TV services
|
|
|
|
adb_command:
|
|
description: Send an ADB command to an Android TV / Fire TV device.
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of Android TV / Fire TV entities.
|
|
example: 'media_player.android_tv_living_room'
|
|
command:
|
|
description: Either a key command or an ADB shell command.
|
|
example: 'HOME'
|
|
download:
|
|
description: Download a file from your Android TV / Fire TV device to your Home Assistant instance.
|
|
fields:
|
|
entity_id:
|
|
description: Name of Android TV / Fire TV entity.
|
|
example: 'media_player.android_tv_living_room'
|
|
device_path:
|
|
description: The filepath on the Android TV / Fire TV device.
|
|
example: '/storage/emulated/0/Download/example.txt'
|
|
local_path:
|
|
description: The filepath on your Home Assistant instance.
|
|
example: '/config/example.txt'
|
|
upload:
|
|
description: Upload a file from your Home Assistant instance to an Android TV / Fire TV device.
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of Android TV / Fire TV entities.
|
|
example: 'media_player.android_tv_living_room'
|
|
device_path:
|
|
description: The filepath on the Android TV / Fire TV device.
|
|
example: '/storage/emulated/0/Download/example.txt'
|
|
local_path:
|
|
description: The filepath on your Home Assistant instance.
|
|
example: '/config/example.txt'
|