Add prettier (in pre-commit and CI) (#33693)

* Add prettier (in pre-commit and CI)

* Make all file prettier

* Change order

* Add to Azure Pipelines

* Fix a YAML file prettier caught as invalid

* Remove flow mapping using curly braces from all YAML service files
This commit is contained in:
Franck Nijhof 2020-04-05 17:27:16 +02:00 committed by GitHub
parent e3bcfb88e7
commit 39336d3ea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
187 changed files with 1649 additions and 1688 deletions

View file

@ -55,6 +55,10 @@ repos:
rev: v1.21.0
hooks:
- id: yamllint
- repo: https://github.com/prettier/prettier
rev: 2.0.2
hooks:
- id: prettier
- repo: local
hooks:
# Run mypy through our wrapper script in order to get the possible

5
.prettierignore Normal file
View file

@ -0,0 +1,5 @@
*.md
azure-*.yml
docs/source/_templates/*
homeassistant/components/*/.translations/*.json
tests/fixtures/*

View file

@ -72,6 +72,10 @@ stages:
. venv/bin/activate
pre-commit run pyupgrade --all-files
displayName: 'Run pyupgrade'
- script: |
. venv/bin/activate
pre-commit run prettier --all-files
displayName: 'Run prettier'
- job: 'Validate'
pool:
vmImage: 'ubuntu-latest'

View file

@ -6,10 +6,10 @@ write_data_by_name:
fields:
adsvar:
description: The name of the variable to write to.
example: '.global_var'
example: ".global_var"
adstype:
description: The data type of the variable to write to.
example: 'int'
example: "int"
value:
description: The value to write to the variable.
example: 1

View file

@ -5,20 +5,20 @@ add_tracking:
fields:
tracking_number:
description: Tracking number for the new tracking
example: '123456789'
example: "123456789"
title:
description: A custom title for the new tracking
example: 'Laptop'
example: "Laptop"
slug:
description: Slug (carrier) of the new tracking
example: 'USPS'
example: "USPS"
remove_tracking:
description: Remove a tracking from Aftership.
fields:
tracking_number:
description: Tracking number of the tracking to remove
example: '123456789'
example: "123456789"
slug:
description: Slug (carrier) of the tracking to remove
example: 'USPS'
example: "USPS"

View file

@ -5,7 +5,7 @@ alarm_disarm:
fields:
entity_id:
description: Name of alarm control panel to disarm.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
code:
description: An optional code to disarm the alarm control panel with.
example: 1234
@ -15,7 +15,7 @@ alarm_arm_custom_bypass:
fields:
entity_id:
description: Name of alarm control panel to arm custom bypass.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
code:
description: An optional code to arm custom bypass the alarm control panel with.
example: 1234
@ -25,7 +25,7 @@ alarm_arm_home:
fields:
entity_id:
description: Name of alarm control panel to arm home.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
code:
description: An optional code to arm home the alarm control panel with.
example: 1234
@ -35,7 +35,7 @@ alarm_arm_away:
fields:
entity_id:
description: Name of alarm control panel to arm away.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
code:
description: An optional code to arm away the alarm control panel with.
example: 1234
@ -45,7 +45,7 @@ alarm_arm_night:
fields:
entity_id:
description: Name of alarm control panel to arm night.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
code:
description: An optional code to arm night the alarm control panel with.
example: 1234
@ -55,7 +55,7 @@ alarm_trigger:
fields:
entity_id:
description: Name of alarm control panel to trigger.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
code:
description: An optional code to trigger the alarm control panel with.
example: 1234

View file

@ -2,8 +2,8 @@ alarm_keypress:
description: Send custom keypresses to the alarm.
fields:
keypress:
description: 'String to send to the alarm panel.'
example: '*71'
description: "String to send to the alarm panel."
example: "*71"
alarm_toggle_chime:
description: Send the alarm the toggle chime command.

View file

@ -1,12 +1,18 @@
toggle:
description: Toggle alert's notifications.
fields:
entity_id: {description: Name of the alert to toggle., example: alert.garage_door_open}
entity_id:
description: Name of the alert to toggle.
example: alert.garage_door_open
turn_off:
description: Silence alert's notifications.
fields:
entity_id: {description: Name of the alert to silence., example: alert.garage_door_open}
entity_id:
description: Name of the alert to silence.
example: alert.garage_door_open
turn_on:
description: Reset alert's notifications.
fields:
entity_id: {description: Name of the alert to reset., example: alert.garage_door_open}
entity_id:
description: Name of the alert to reset.
example: alert.garage_door_open

View file

@ -3,49 +3,49 @@ enable_recording:
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
disable_recording:
description: Disable continuous recording to camera storage.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
enable_audio:
description: Enable audio stream.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
disable_audio:
description: Disable audio stream.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
enable_motion_recording:
description: Enable recording a clip to camera storage when motion is detected.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
disable_motion_recording:
description: Disable recording a clip to camera storage when motion is detected.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
goto_preset:
description: Move camera to PTZ preset.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
preset:
description: Preset number, starting from 1.
example: 1
@ -55,7 +55,7 @@ set_color_bw:
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
color_bw:
description: Color mode, one of 'auto', 'color' or 'bw'.
example: auto
@ -65,24 +65,24 @@ start_tour:
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
stop_tour:
description: Stop camera's PTZ tour function.
fields:
entity_id:
description: "Name(s) of the cameras, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
ptz_control:
description: Move (Pan/Tilt) and/or Zoom a PTZ camera
fields:
entity_id:
description: "Name of the camera, or 'all' for all cameras."
example: 'camera.house_front'
example: "camera.house_front"
movement:
description: "up, down, right, left, right_up, right_down, left_up, left_down, zoom_in, zoom_out"
example: 'right'
example: "right"
travel_time:
description: "(optional) Travel time in fractional seconds: from 0 to 1. Default: .2"
example: '.5'
example: ".5"

View file

@ -5,31 +5,31 @@ adb_command:
fields:
entity_id:
description: Name(s) of Android TV / Fire TV entities.
example: 'media_player.android_tv_living_room'
example: "media_player.android_tv_living_room"
command:
description: Either a key command or an ADB shell command.
example: 'HOME'
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'
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'
example: "/storage/emulated/0/Download/example.txt"
local_path:
description: The filepath on your Home Assistant instance.
example: '/config/example.txt'
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'
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'
example: "/storage/emulated/0/Download/example.txt"
local_path:
description: The filepath on your Home Assistant instance.
example: '/config/example.txt'
example: "/config/example.txt"

View file

@ -1,5 +1,8 @@
apple_tv_authenticate:
description: Start AirPlay device authentication.
fields:
entity_id: {description: Name(s) of entities to authenticate with., example: media_player.apple_tv}
apple_tv_scan: {description: Scan for Apple TV devices.}
entity_id:
description: Name(s) of entities to authenticate with.
example: media_player.apple_tv
apple_tv_scan:
description: Scan for Apple TV devices.

View file

@ -2,14 +2,8 @@
"domain": "august",
"name": "August",
"documentation": "https://www.home-assistant.io/integrations/august",
"requirements": [
"py-august==0.25.0"
],
"dependencies": [
"configurator"
],
"codeowners": [
"@bdraco"
],
"requirements": ["py-august==0.25.0"],
"dependencies": ["configurator"],
"codeowners": ["@bdraco"],
"config_flow": true
}

View file

@ -87,7 +87,6 @@
"not_opened": "{entity_name} closed",
"turned_on": "{entity_name} turned on",
"turned_off": "{entity_name} turned off"
}
}
}

View file

@ -3,8 +3,7 @@ set_all_zones:
fields:
entity_id:
description: Name of any blackbird zone.
example: 'media_player.zone_1'
example: "media_player.zone_1"
source:
description: Name of source to switch to.
example: 'Source 1'
example: "Source 1"

View file

@ -1,9 +1,14 @@
send:
description: Send a raw packet to device.
fields:
host: {description: IP address of device to send packet via. This must be an already configured device., example: "192.168.0.1"}
packet: {description: base64 encoded packet.}
host:
description: IP address of device to send packet via. This must be an already configured device.
example: "192.168.0.1"
packet:
description: base64 encoded packet.
learn:
description: Learn a IR or RF code from remote.
fields:
host: {description: IP address of device to send packet via. This must be an already configured device., example: "192.168.0.1"}
host:
description: IP address of device to send packet via. This must be an already configured device.
example: "192.168.0.1"

View file

@ -1,2 +1 @@
# Describes the format for available calendar services

View file

@ -5,61 +5,61 @@ turn_off:
fields:
entity_id:
description: Entity id.
example: 'camera.living_room'
example: "camera.living_room"
turn_on:
description: Turn on camera.
fields:
entity_id:
description: Entity id.
example: 'camera.living_room'
example: "camera.living_room"
enable_motion_detection:
description: Enable the motion detection in a camera.
fields:
entity_id:
description: Name(s) of entities to enable motion detection.
example: 'camera.living_room_camera'
example: "camera.living_room_camera"
disable_motion_detection:
description: Disable the motion detection in a camera.
fields:
entity_id:
description: Name(s) of entities to disable motion detection.
example: 'camera.living_room_camera'
example: "camera.living_room_camera"
snapshot:
description: Take a snapshot from a camera.
fields:
entity_id:
description: Name(s) of entities to create snapshots from.
example: 'camera.living_room_camera'
example: "camera.living_room_camera"
filename:
description: Template of a Filename. Variable is entity_id.
example: '/tmp/snapshot_{{ entity_id }}'
example: "/tmp/snapshot_{{ entity_id }}"
play_stream:
description: Play camera stream on supported media player.
fields:
entity_id:
description: Name(s) of entities to stream from.
example: 'camera.living_room_camera'
example: "camera.living_room_camera"
media_player:
description: Name(s) of media player to stream to.
example: 'media_player.living_room_tv'
example: "media_player.living_room_tv"
format:
description: (Optional) Stream format supported by media player.
example: 'hls'
example: "hls"
record:
description: Record live camera feed.
fields:
entity_id:
description: Name of entities to record.
example: 'camera.living_room_camera'
example: "camera.living_room_camera"
filename:
description: Template of a Filename. Variable is entity_id. Must be mp4.
example: '/tmp/snapshot_{{ entity_id }}.mp4'
example: "/tmp/snapshot_{{ entity_id }}.mp4"
duration:
description: (Optional) Target recording length (in seconds).
default: 30
@ -67,4 +67,3 @@ record:
lookback:
description: (Optional) Target lookback period (in seconds) to include in addition to duration. Only available if there is currently an active HLS stream.
example: 4

View file

@ -3,21 +3,21 @@ seek_forward:
fields:
entity_id:
description: Name of entity for the instance of Channels to seek in.
example: 'media_player.family_room_channels'
example: "media_player.family_room_channels"
seek_backward:
description: Seek backward by a set number of seconds.
fields:
entity_id:
description: Name of entity for the instance of Channels to seek in.
example: 'media_player.family_room_channels'
example: "media_player.family_room_channels"
seek_by:
description: Seek by an inputted number of seconds.
fields:
entity_id:
description: Name of entity for the instance of Channels to seek in.
example: 'media_player.family_room_channels'
example: "media_player.family_room_channels"
seconds:
description: Number of seconds to seek by. Negative numbers seek backwards.
example: 120

View file

@ -5,7 +5,7 @@ set_aux_heat:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
aux_heat:
description: New value of axillary heater.
example: true
@ -15,17 +15,17 @@ set_preset_mode:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
preset_mode:
description: New value of preset mode
example: 'away'
example: "away"
set_temperature:
description: Set target temperature of climate device.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
temperature:
description: New target temperature for HVAC.
example: 25
@ -37,14 +37,14 @@ set_temperature:
example: 20
hvac_mode:
description: HVAC operation mode to set temperature to.
example: 'heat'
example: "heat"
set_humidity:
description: Set target humidity of climate device.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
humidity:
description: New target humidity for climate device.
example: 60
@ -54,7 +54,7 @@ set_fan_mode:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.nest'
example: "climate.nest"
fan_mode:
description: New value of fan mode.
example: On Low
@ -64,7 +64,7 @@ set_hvac_mode:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.nest'
example: "climate.nest"
hvac_mode:
description: New value of operation mode.
example: heat
@ -74,7 +74,7 @@ set_swing_mode:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.nest'
example: "climate.nest"
swing_mode:
description: New value of swing mode.
@ -83,11 +83,11 @@ turn_on:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
turn_off:
description: Turn climate device off.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"

View file

@ -5,25 +5,25 @@ decrement:
fields:
entity_id:
description: Entity id of the counter to decrement.
example: 'counter.count0'
example: "counter.count0"
increment:
description: Increment a counter.
fields:
entity_id:
description: Entity id of the counter to increment.
example: 'counter.count0'
example: "counter.count0"
reset:
description: Reset a counter.
fields:
entity_id:
description: Entity id of the counter to reset.
example: 'counter.count0'
example: "counter.count0"
configure:
description: Change counter parameters
fields:
entity_id:
description: Entity id of the counter to change.
example: 'counter.count0'
example: "counter.count0"
minimum:
description: New minimum value for the counter or None to remove minimum
example: 0

View file

@ -5,28 +5,28 @@ open_cover:
fields:
entity_id:
description: Name(s) of cover(s) to open.
example: 'cover.living_room'
example: "cover.living_room"
close_cover:
description: Close all or specified cover.
fields:
entity_id:
description: Name(s) of cover(s) to close.
example: 'cover.living_room'
example: "cover.living_room"
toggle:
description: Toggles a cover open/closed.
fields:
entity_id:
description: Name(s) of cover(s) to toggle.
example: 'cover.garage_door'
example: "cover.garage_door"
set_cover_position:
description: Move to specific position all or specified cover.
fields:
entity_id:
description: Name(s) of cover(s) to set cover position.
example: 'cover.living_room'
example: "cover.living_room"
position:
description: Position of the cover (0 to 100).
example: 30
@ -36,35 +36,35 @@ stop_cover:
fields:
entity_id:
description: Name(s) of cover(s) to stop.
example: 'cover.living_room'
example: "cover.living_room"
open_cover_tilt:
description: Open all or specified cover tilt.
fields:
entity_id:
description: Name(s) of cover(s) tilt to open.
example: 'cover.living_room_blinds'
example: "cover.living_room_blinds"
close_cover_tilt:
description: Close all or specified cover tilt.
fields:
entity_id:
description: Name(s) of cover(s) to close tilt.
example: 'cover.living_room_blinds'
example: "cover.living_room_blinds"
toggle_cover_tilt:
description: Toggles a cover tilt open/closed.
fields:
entity_id:
description: Name(s) of cover(s) to toggle tilt.
example: 'cover.living_room_blinds'
example: "cover.living_room_blinds"
set_cover_tilt_position:
description: Move to specific position all or specified cover tilt.
fields:
entity_id:
description: Name(s) of cover(s) to set cover tilt position.
example: 'cover.living_room_blinds'
example: "cover.living_room_blinds"
tilt_position:
description: Tilt position of the cover (0 to 100).
example: 30
@ -74,4 +74,4 @@ stop_cover_tilt:
fields:
entity_id:
description: Name(s) of cover(s) to stop.
example: 'cover.living_room_blinds'
example: "cover.living_room_blinds"

View file

@ -3,16 +3,12 @@
"name": "deCONZ",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/deconz",
"requirements": [
"pydeconz==70"
],
"requirements": ["pydeconz==70"],
"ssdp": [
{
"manufacturer": "Royal Philips Electronics"
}
],
"codeowners": [
"@kane610"
],
"codeowners": ["@kane610"],
"quality_scale": "platinum"
}

View file

@ -3,7 +3,7 @@ configure:
fields:
entity:
description: Entity id representing a specific device in deCONZ.
example: 'light.rgb_light'
example: "light.rgb_light"
field:
description: >-
Field is a string representing a full path to deCONZ endpoint (when
@ -15,11 +15,11 @@ configure:
example: '{"on": true}'
bridgeid:
description: (Optional) Bridgeid is a string unique for each deCONZ hardware. It can be found as part of the integration name.
example: '00212EFFFF012345'
example: "00212EFFFF012345"
device_refresh:
description: Refresh device lists from deCONZ.
fields:
bridgeid:
description: (Optional) Bridgeid is a string unique for each deCONZ hardware. It can be found as part of the integration name.
example: '00212EFFFF012345'
example: "00212EFFFF012345"

View file

@ -1,11 +1,11 @@
# Describes the format for available webostv services
get_command:
description: 'Send a generic http get command.'
description: "Send a generic http get command."
fields:
entity_id:
description: Name(s) of the denonavr entities where to run the API method.
example: 'media_player.living_room_receiver'
example: "media_player.living_room_receiver"
command:
description: Endpoint of the command, including associated parameters.
example: '/goform/formiPhoneAppDirect.xml?RCKSK0410370'
example: "/goform/formiPhoneAppDirect.xml?RCKSK0410370"

View file

@ -5,22 +5,22 @@ see:
fields:
mac:
description: MAC address of device
example: 'FF:FF:FF:FF:FF:FF'
example: "FF:FF:FF:FF:FF:FF"
dev_id:
description: Id of device (find id in known_devices.yaml).
example: 'phonedave'
example: "phonedave"
host_name:
description: Hostname of device
example: 'Dave'
example: "Dave"
location_name:
description: Name of location where device is located (not_home is away).
example: 'home'
example: "home"
gps:
description: GPS coordinates where device is located (latitude, longitude).
example: '[51.509802, -0.086692]'
example: "[51.509802, -0.086692]"
gps_accuracy:
description: Accuracy of GPS coordinates.
example: '80'
example: "80"
battery:
description: Battery level of device.
example: '100'
example: "100"

View file

@ -2,9 +2,6 @@
"domain": "doods",
"name": "DOODS - Distributed Outside Object Detection Service",
"documentation": "https://www.home-assistant.io/integrations/doods",
"requirements": [
"pydoods==1.0.2",
"pillow==7.0.0"
],
"requirements": ["pydoods==1.0.2", "pillow==7.0.0"],
"codeowners": []
}

View file

@ -2,16 +2,9 @@
"domain": "doorbird",
"name": "DoorBird",
"documentation": "https://www.home-assistant.io/integrations/doorbird",
"requirements": [
"doorbirdpy==2.0.8"
],
"dependencies": [
"http",
"logbook"
],
"requirements": ["doorbirdpy==2.0.8"],
"dependencies": ["http", "logbook"],
"zeroconf": ["_axis-video._tcp.local."],
"codeowners": [
"@oblogic7", "@bdraco"
],
"codeowners": ["@oblogic7", "@bdraco"],
"config_flow": true
}

View file

@ -3,4 +3,4 @@ set_txt:
fields:
txt:
description: Payload for the TXT record.
example: 'This domain name is reserved for use in documentation'
example: "This domain name is reserved for use in documentation"

View file

@ -55,7 +55,7 @@ resume_program:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
resume_all:
description: Resume all events and return to the scheduled program. This default to false which removes only the top event.
example: true
@ -65,7 +65,7 @@ set_fan_min_on_time:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
fan_min_on_time:
description: New value of fan min on time.
example: 5

View file

@ -2,10 +2,6 @@
"domain": "edl21",
"name": "EDL21",
"documentation": "https://www.home-assistant.io/integrations/edl21",
"requirements": [
"pysml==0.0.2"
],
"codeowners": [
"@mtdcr"
]
"requirements": ["pysml==0.0.2"],
"codeowners": ["@mtdcr"]
}

View file

@ -1,6 +1,12 @@
heat_set:
description: Set heating/cooling level for eight sleep.
fields:
duration: {description: Duration to heat/cool at the target level in seconds., example: 3600}
entity_id: {description: Entity id of the bed state to adjust., example: sensor.eight_left_bed_state}
target: {description: Target cooling/heating level from -100 to 100., example: 35}
duration:
description: Duration to heat/cool at the target level in seconds.
example: 3600
entity_id:
description: Entity id of the bed state to adjust.
example: sensor.eight_left_bed_state
target:
description: Target cooling/heating level from -100 to 100.
example: 35

View file

@ -2,11 +2,7 @@
"domain": "elkm1",
"name": "Elk-M1 Control",
"documentation": "https://www.home-assistant.io/integrations/elkm1",
"requirements": [
"elkm1-lib==0.7.17"
],
"codeowners": [
"@bdraco"
],
"requirements": ["elkm1-lib==0.7.17"],
"codeowners": ["@bdraco"],
"config_flow": true
}

View file

@ -3,7 +3,7 @@ alarm_arm_home_instant:
fields:
entity_id:
description: Name of alarm control panel to arm.
example: 'alarm_control_panel.main'
example: "alarm_control_panel.main"
code:
description: An code to arm the alarm control panel.
example: 1234
@ -13,7 +13,7 @@ alarm_arm_night_instant:
fields:
entity_id:
description: Name of alarm control panel to arm.
example: 'alarm_control_panel.main'
example: "alarm_control_panel.main"
code:
description: An code to arm the alarm control panel.
example: 1234
@ -23,7 +23,7 @@ alarm_arm_vacation:
fields:
entity_id:
description: Name of alarm control panel to arm.
example: 'alarm_control_panel.main'
example: "alarm_control_panel.main"
code:
description: An code to arm the alarm control panel.
example: 1234
@ -33,7 +33,7 @@ alarm_display_message:
fields:
entity_id:
description: Name of alarm control panel to display messages on.
example: 'alarm_control_panel.main'
example: "alarm_control_panel.main"
clear:
description: 0=clear message, 1=clear message with * key, 2=Display until timeout; default 2
example: 1

View file

@ -5,10 +5,10 @@ alarm_keypress:
fields:
entity_id:
description: Name of the alarm control panel to trigger.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
keypress:
description: 'String to send to the alarm panel (1-6 characters).'
example: '*71'
description: "String to send to the alarm panel (1-6 characters)."
example: "*71"
invoke_custom_function:
description: >

View file

@ -3,7 +3,7 @@ select_cmode:
fields:
entity_id:
description: Name of projector
example: 'media_player.epson_projector'
example: "media_player.epson_projector"
cmode:
description: Name of Cmode
example: 'cinema'
example: "cinema"

View file

@ -7,7 +7,7 @@ set_system_mode:
which it will revert to Auto. Not all systems support all modes.
fields:
mode:
description: 'One of: Auto, AutoWithEco, Away, DayOff, HeatingOff, or Custom.'
description: "One of: Auto, AutoWithEco, Away, DayOff, HeatingOff, or Custom."
example: Away
period:
description: >-

View file

@ -3,10 +3,10 @@ teach_face:
fields:
entity_id:
description: The facebox entity to teach.
example: 'image_processing.facebox'
example: "image_processing.facebox"
name:
description: The name of the face to teach.
example: 'my_name'
example: "my_name"
file_path:
description: The path to the image file.
example: '/images/my_image.jpg'
example: "/images/my_image.jpg"

View file

@ -3,10 +3,10 @@ ptz:
fields:
entity_id:
description: Name(s) of entities to move.
example: 'camera.living_room_camera'
example: "camera.living_room_camera"
movement:
description: "Direction of the movement. Allowed values: up, down, left, right, top_left, top_right, bottom_left, bottom_right."
example: 'up'
example: "up"
travel_time:
description: "(Optional) Travel time in seconds. Allowed values: float from 0 to 1. Default: 0.125"
example: 0.125

View file

@ -2,9 +2,7 @@
"domain": "frontend",
"name": "Home Assistant Frontend",
"documentation": "https://www.home-assistant.io/integrations/frontend",
"requirements": [
"home-assistant-frontend==20200403.0"
],
"requirements": ["home-assistant-frontend==20200403.0"],
"dependencies": [
"api",
"auth",
@ -16,8 +14,6 @@
"system_log",
"websocket_api"
],
"codeowners": [
"@home-assistant/frontend"
],
"codeowners": ["@home-assistant/frontend"],
"quality_scale": "internal"
}

View file

@ -5,7 +5,7 @@ set_theme:
fields:
name:
description: Name of a predefined theme or 'default'.
example: 'light'
example: "light"
reload_themes:
description: Reload themes from yaml configuration.

View file

@ -3,11 +3,7 @@
"name": "Global Disaster Alert and Coordination System (GDACS)",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/gdacs",
"requirements": [
"aio_georss_gdacs==0.3"
],
"codeowners": [
"@exxamalte"
],
"requirements": ["aio_georss_gdacs==0.3"],
"codeowners": ["@exxamalte"],
"quality_scale": "platinum"
}

View file

@ -9,7 +9,7 @@ set_zone_mode:
description: The zone's entity_id.
example: climate.kitchen
mode:
description: 'One of: off, timer or footprint.'
description: "One of: off, timer or footprint."
example: timer
set_zone_override:
@ -26,4 +26,3 @@ set_zone_override:
description: >-
The duration of the override. Optional, default 1 hour, maximum 24 hours.
example: '{"minutes": 135}'

View file

@ -1,4 +1,5 @@
power_on: { description: Power on all devices which supports it. }
power_on:
description: Power on all devices which supports it.
select_device:
description: Select HDMI device.
fields:

View file

@ -21,10 +21,10 @@ set_variable_value:
fields:
entity_id:
description: Name(s) of homematic central to set value.
example: 'homematic.ccu2'
example: "homematic.ccu2"
name:
description: Name of the variable to set.
example: 'testvariable'
example: "testvariable"
value:
description: New value
example: 1
@ -82,4 +82,3 @@ put_paramset:
paramset:
description: A paramset dictionary
example: '{"WEEK_PROGRAM_POINTER": 1}'

View file

@ -3,7 +3,7 @@ dismiss:
fields:
target:
description: An array of targets. Optional.
example: ['my_phone', 'my_tablet']
example: ["my_phone", "my_tablet"]
data:
description: Extended information of notification. Supports tag. Optional.
example: '{ "tag": "tagname" }'

View file

@ -3,47 +3,46 @@ update:
fields:
account:
description: Your iCloud account username (email) or account name.
example: 'steve@apple.com'
example: "steve@apple.com"
play_sound:
description: Play sound on an Apple device.
fields:
account:
description: (required) Your iCloud account username (email) or account name.
example: 'steve@apple.com'
example: "steve@apple.com"
device_name:
description: (required) The name of the Apple device to play a sound.
example: 'stevesiphone'
example: "stevesiphone"
display_message:
description: Display a message on an Apple device.
fields:
account:
description: (required) Your iCloud account username (email) or account name.
example: 'steve@apple.com'
example: "steve@apple.com"
device_name:
description: (required) The name of the Apple device to display the message.
example: 'stevesiphone'
example: "stevesiphone"
message:
description: (required) The content of your message.
example: 'Hey Steve !'
example: "Hey Steve !"
sound:
description: To make a sound when displaying the message (boolean).
example: 'true'
example: "true"
lost_device:
description: Make an Apple device in lost state.
fields:
account:
description: (required) Your iCloud account username (email) or account name.
example: 'steve@apple.com'
example: "steve@apple.com"
device_name:
description: (required) The name of the Apple device to set lost.
example: 'stevesiphone'
example: "stevesiphone"
number:
description: (required) The phone number to call in lost mode (must contain country code).
example: '+33450020100'
example: "+33450020100"
message:
description: (required) The message to display in lost mode.
example: 'Call me'
example: "Call me"

View file

@ -5,23 +5,23 @@ push_alarm_state:
fields:
entity_id:
description: Name of the alarm control panel which state has to be updated.
example: 'alarm_control_panel.downstairs'
example: "alarm_control_panel.downstairs"
state:
description: The state to which the alarm control panel has to be set.
example: 'armed_night'
example: "armed_night"
trigger:
description: Triggers the configured IFTTT Webhook.
fields:
event:
description: The name of the event to sent.
example: 'MY_HA_EVENT'
example: "MY_HA_EVENT"
value1:
description: Generic field to send data via the event.
example: 'Hello World'
example: "Hello World"
value2:
description: Generic field to send data via the event.
example: 'some additional data'
example: "some additional data"
value3:
description: Generic field to send data via the event.
example: 'even more data'
example: "even more data"

View file

@ -2,9 +2,6 @@
"domain": "ihc",
"name": "IHC Controller",
"documentation": "https://www.home-assistant.io/integrations/ihc",
"requirements": [
"defusedxml==0.6.0",
"ihcsdk==2.6.0"
],
"requirements": ["defusedxml==0.6.0", "ihcsdk==2.6.0"],
"codeowners": []
}

View file

@ -5,4 +5,4 @@ scan:
fields:
entity_id:
description: Name(s) of entities to scan immediately.
example: 'image_processing.alpr_garage'
example: "image_processing.alpr_garage"

View file

@ -1,15 +1,20 @@
toggle:
description: Toggles an input boolean.
fields:
entity_id: {description: Entity id of the input boolean to toggle., example: input_boolean.notify_alerts}
entity_id:
description: Entity id of the input boolean to toggle.
example: input_boolean.notify_alerts
turn_off:
description: Turns off an input boolean
fields:
entity_id: {description: Entity id of the input boolean to turn off., example: input_boolean.notify_alerts}
entity_id:
description: Entity id of the input boolean to turn off.
example: input_boolean.notify_alerts
turn_on:
description: Turns on an input boolean.
fields:
entity_id: {description: Entity id of the input boolean to turn on., example: input_boolean.notify_alerts}
entity_id:
description: Entity id of the input boolean to turn on.
example: input_boolean.notify_alerts
reload:
description: Reload the input_boolean configuration.

View file

@ -1,24 +1,32 @@
select_next:
description: Select the next options of an input select entity.
fields:
entity_id: {description: Entity id of the input select to select the next value
for., example: input_select.my_select}
entity_id:
description: Entity id of the input select to select the next value for.
example: input_select.my_select
select_option:
description: Select an option of an input select entity.
fields:
entity_id: {description: Entity id of the input select to select the value., example: input_select.my_select}
option: {description: Option to be selected., example: '"Item A"'}
entity_id:
description: Entity id of the input select to select the value.
example: input_select.my_select
option:
description: Option to be selected.
example: '"Item A"'
select_previous:
description: Select the previous options of an input select entity.
fields:
entity_id: {description: Entity id of the input select to select the previous
value for., example: input_select.my_select}
entity_id:
description: Entity id of the input select to select the previous value for.
example: input_select.my_select
set_options:
description: Set the options of an input select entity.
fields:
entity_id: {description: Entity id of the input select to set the new options
for., example: input_select.my_select}
options: {description: Options for the input select entity., example: '["Item
A", "Item B", "Item C"]'}
entity_id:
description: Entity id of the input select to set the new options for.
example: input_select.my_select
options:
description: Options for the input select entity.
example: '["Item A", "Item B", "Item C"]'
reload:
description: Reload the input_select configuration.

View file

@ -1,8 +1,11 @@
set_value:
description: Set the value of an input text entity.
fields:
entity_id: {description: Entity id of the input text to set the new value., example: input_text.text1}
value: {description: The target value the entity should be set to., example: This
is an example text}
entity_id:
description: Entity id of the input text to set the new value.
example: input_text.text1
value:
description: The target value the entity should be set to.
example: This is an example text
reload:
description: Reload the input_text configuration.

View file

@ -5,7 +5,7 @@ add_to_playlist:
fields:
entity_id:
description: Name(s) of the Kodi entities where to add the media.
example: 'media_player.living_room_kodi'
example: "media_player.living_room_kodi"
media_type:
description: Media type identifier. It must be one of SONG or ALBUM.
example: ALBUM
@ -14,17 +14,17 @@ add_to_playlist:
example: 123456
media_name:
description: Optional media name for filtering media. Can be 'ALL' when `media_type` is 'ALBUM' and `artist_name` is specified, to add all songs from one artist.
example: 'Highway to Hell'
example: "Highway to Hell"
artist_name:
description: Optional artist name for filtering media.
example: 'AC/DC'
example: "AC/DC"
call_method:
description: 'Call a Kodi JSONRPC API method with optional parameters. Results of the Kodi API call will be redirected in a Home Assistant event: `kodi_call_method_result`.'
description: "Call a Kodi JSONRPC API method with optional parameters. Results of the Kodi API call will be redirected in a Home Assistant event: `kodi_call_method_result`."
fields:
entity_id:
description: Name(s) of the Kodi entities where to run the API method.
example: 'media_player.living_room_kodi'
example: "media_player.living_room_kodi"
method:
description: Name of the Kodi JSONRPC API method to be called.
example: 'VideoLibrary.GetRecentlyAddedEpisodes'
example: "VideoLibrary.GetRecentlyAddedEpisodes"

View file

@ -3,19 +3,12 @@
"name": "Konnected",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/konnected",
"requirements": [
"konnected==1.1.0"
],
"requirements": ["konnected==1.1.0"],
"ssdp": [
{
"manufacturer": "konnected.io"
}
],
"dependencies": [
"http"
],
"codeowners": [
"@heythisisnate",
"@kit-klein"
]
"dependencies": ["http"],
"codeowners": ["@heythisisnate", "@kit-klein"]
}

View file

@ -3,7 +3,7 @@ update_file_path:
fields:
entity_id:
description: Name of the entity_id of the camera to update.
example: 'camera.local_file'
example: "camera.local_file"
file_path:
description: The full path to the new image file to be displayed.
example: '/config/www/images/image.jpg'
example: "/config/www/images/image.jpg"

View file

@ -25,7 +25,7 @@ lock:
fields:
entity_id:
description: Name of lock to lock.
example: 'lock.front_door'
example: "lock.front_door"
code:
description: An optional code to lock the lock with.
example: 1234
@ -35,7 +35,7 @@ open:
fields:
entity_id:
description: Name of lock to open.
example: 'lock.front_door'
example: "lock.front_door"
code:
description: An optional code to open the lock with.
example: 1234
@ -58,7 +58,7 @@ unlock:
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
example: "lock.front_door"
code:
description: An optional code to unlock the lock with.
example: 1234

View file

@ -7,7 +7,6 @@
"data": {
"station_id": "Luftdaten Sensor ID",
"show_on_map": "Show on map"
}
}
},

View file

@ -2,8 +2,6 @@
"domain": "marytts",
"name": "MaryTTS",
"documentation": "https://www.home-assistant.io/integrations/marytts",
"requirements": [
"speak2mary==1.4.0"
],
"requirements": ["speak2mary==1.4.0"],
"codeowners": []
}

View file

@ -5,42 +5,42 @@ turn_on:
fields:
entity_id:
description: Name(s) of entities to turn on.
example: 'media_player.living_room_chromecast'
example: "media_player.living_room_chromecast"
turn_off:
description: Turn a media player power off.
fields:
entity_id:
description: Name(s) of entities to turn off.
example: 'media_player.living_room_chromecast'
example: "media_player.living_room_chromecast"
toggle:
description: Toggles a media player power state.
fields:
entity_id:
description: Name(s) of entities to toggle.
example: 'media_player.living_room_chromecast'
example: "media_player.living_room_chromecast"
volume_up:
description: Turn a media player volume up.
fields:
entity_id:
description: Name(s) of entities to turn volume up on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
volume_down:
description: Turn a media player volume down.
fields:
entity_id:
description: Name(s) of entities to turn volume down on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
volume_mute:
description: Mute a media player's volume.
fields:
entity_id:
description: Name(s) of entities to mute.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
is_volume_muted:
description: True/false for mute/unmute.
example: true
@ -50,7 +50,7 @@ volume_set:
fields:
entity_id:
description: Name(s) of entities to set volume level on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
volume_level:
description: Volume level to set as float.
example: 0.6
@ -60,49 +60,49 @@ media_play_pause:
fields:
entity_id:
description: Name(s) of entities to toggle play/pause state on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
media_play:
description: Send the media player the command for play.
fields:
entity_id:
description: Name(s) of entities to play on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
media_pause:
description: Send the media player the command for pause.
fields:
entity_id:
description: Name(s) of entities to pause on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
media_stop:
description: Send the media player the stop command.
fields:
entity_id:
description: Name(s) of entities to stop on.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
media_next_track:
description: Send the media player the command for next track.
fields:
entity_id:
description: Name(s) of entities to send next track command to.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
media_previous_track:
description: Send the media player the command for previous track.
fields:
entity_id:
description: Name(s) of entities to send previous track command to.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
media_seek:
description: Send the media player the command to seek in current playing media.
fields:
entity_id:
description: Name(s) of entities to seek media on.
example: 'media_player.living_room_chromecast'
example: "media_player.living_room_chromecast"
seek_position:
description: Position to seek to. The format is platform dependent.
example: 100
@ -112,47 +112,47 @@ play_media:
fields:
entity_id:
description: Name(s) of entities to seek media on
example: 'media_player.living_room_chromecast'
example: "media_player.living_room_chromecast"
media_content_id:
description: The ID of the content to play. Platform dependent.
example: 'https://home-assistant.io/images/cast/splash.png'
example: "https://home-assistant.io/images/cast/splash.png"
media_content_type:
description: The type of the content to play. Must be one of image, music, tvshow, video, episode, channel or playlist
example: 'music'
example: "music"
select_source:
description: Send the media player the command to change input source.
fields:
entity_id:
description: Name(s) of entities to change source on.
example: 'media_player.txnr535_0009b0d81f82'
example: "media_player.txnr535_0009b0d81f82"
source:
description: Name of the source to switch to. Platform dependent.
example: 'video1'
example: "video1"
select_sound_mode:
description: Send the media player the command to change sound mode.
fields:
entity_id:
description: Name(s) of entities to change sound mode on.
example: 'media_player.marantz'
example: "media_player.marantz"
sound_mode:
description: Name of the sound mode to switch to.
example: 'Music'
example: "Music"
clear_playlist:
description: Send the media player the command to clear players playlist.
fields:
entity_id:
description: Name(s) of entities to change source on.
example: 'media_player.living_room_chromecast'
example: "media_player.living_room_chromecast"
shuffle_set:
description: Set shuffling state.
fields:
entity_id:
description: Name(s) of entities to set.
example: 'media_player.spotify'
example: "media_player.spotify"
shuffle:
description: True/false for enabling/disabling shuffle.
example: true

View file

@ -1,28 +1,48 @@
create_group:
description: Create a new person group.
fields:
name: {description: Name of the group., example: family}
name:
description: Name of the group.
example: family
create_person:
description: Create a new person in the group.
fields:
group: {description: Name of the group, example: family}
name: {description: Name of the person, example: Hans}
group:
description: Name of the group
example: family
name:
description: Name of the person
example: Hans
delete_group:
description: Delete a new person group.
fields:
name: {description: Name of the group., example: family}
name:
description: Name of the group.
example: family
delete_person:
description: Delete a person in the group.
fields:
group: {description: Name of the group., example: family}
name: {description: Name of the person., example: Hans}
group:
description: Name of the group.
example: family
name:
description: Name of the person.
example: Hans
face_person:
description: Add a new picture to a person.
fields:
camera_entity: {description: Camera to take a picture., example: camera.door}
group: {description: Name of the group., example: family}
person: {description: Name of the person., example: Hans}
camera_entity:
description: Camera to take a picture.
example: camera.door
group:
description: Name of the group.
example: family
person:
description: Name of the person.
example: Hans
train_group:
description: Train a person group.
fields:
group: {description: Name of the group, example: family}
group:
description: Name of the group
example: family

View file

@ -3,10 +3,6 @@
"name": "Mikrotik",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/mikrotik",
"requirements": [
"librouteros==3.0.0"
],
"codeowners": [
"@engrbm87"
]
"requirements": ["librouteros==3.0.0"],
"codeowners": ["@engrbm87"]
}

View file

@ -1,14 +1,30 @@
write_coil:
description: Write to a modbus coil.
fields:
address: {description: Address of the register to write to., example: 0}
state: {description: State to write., example: false}
unit: {description: Address of the modbus unit., example: 21}
hub: {description: Optional Modbus hub name. A hub with the name 'default' is used if not specified., example: "hub1"}
address:
description: Address of the register to write to.
example: 0
state:
description: State to write.
example: false
unit:
description: Address of the modbus unit.
example: 21
hub:
description: Optional Modbus hub name. A hub with the name 'default' is used if not specified.
example: "hub1"
write_register:
description: Write to a modbus holding register.
fields:
address: {description: Address of the holding register to write to., example: 0}
unit: {description: Address of the modbus unit., example: 21}
value: {description: Value (single value or array) to write., example: "0 or [4,0]"}
hub: {description: Optional Modbus hub name. A hub with the name 'default' is used if not specified., example: "hub1"}
address:
description: Address of the holding register to write to.
example: 0
unit:
description: Address of the modbus unit.
example: 21
value:
description: Value (single value or array) to write.
example: "0 or [4,0]"
hub:
description: Optional Modbus hub name. A hub with the name 'default' is used if not specified.
example: "hub1"

View file

@ -3,11 +3,11 @@ snapshot:
fields:
entity_id:
description: Name(s) of entities that will be snapshot. Platform dependent.
example: 'media_player.living_room'
example: "media_player.living_room"
restore:
description: Restore a snapshot of the media player zone.
fields:
entity_id:
description: Name(s) of entities that will be restored. Platform dependent.
example: 'media_player.living_room'
example: "media_player.living_room"

View file

@ -2,14 +2,10 @@
"domain": "myq",
"name": "MyQ",
"documentation": "https://www.home-assistant.io/integrations/myq",
"requirements": [
"pymyq==2.0.1"
],
"requirements": ["pymyq==2.0.1"],
"codeowners": ["@bdraco"],
"config_flow": true,
"homekit": {
"models": [
"819LMB"
]
"models": ["819LMB"]
}
}

View file

@ -2,25 +2,12 @@
"domain": "netatmo",
"name": "Netatmo",
"documentation": "https://www.home-assistant.io/integrations/netatmo",
"requirements": [
"pyatmo==3.3.0"
],
"after_dependencies": [
"cloud"
],
"dependencies": [
"webhook"
],
"codeowners": [
"@cgtobi"
],
"requirements": ["pyatmo==3.3.0"],
"after_dependencies": ["cloud"],
"dependencies": ["webhook"],
"codeowners": ["@cgtobi"],
"config_flow": true,
"homekit": {
"models": [
"Healty Home Coach",
"Netatmo Relay",
"Presence",
"Welcome"
]
"models": ["Healty Home Coach", "Netatmo Relay", "Presence", "Welcome"]
}
}

View file

@ -1,12 +1,8 @@
{
"domain": "nexia",
"name": "Nexia",
"requirements": [
"nexia==0.7.3"
],
"codeowners": [
"@ryannazaretian", "@bdraco"
],
"requirements": ["nexia==0.7.3"],
"codeowners": ["@ryannazaretian", "@bdraco"],
"documentation": "https://www.home-assistant.io/integrations/nexia",
"config_flow": true
}

View file

@ -2,10 +2,6 @@
"domain": "nextcloud",
"name": "Nextcloud",
"documentation": "https://www.home-assistant.io/integrations/nextcloud",
"requirements": [
"nextcloudmonitor==1.1.0"
],
"codeowners": [
"@meichthys"
]
"requirements": ["nextcloudmonitor==1.1.0"],
"codeowners": ["@meichthys"]
}

View file

@ -18,4 +18,3 @@ update:
description: >
The vehicle identification number (VIN) of the vehicle, 17 characters
example: WBANXXXXXX1234567

View file

@ -8,7 +8,7 @@ notify:
example: The garage door has been open for 10 minutes.
title:
description: Optional title for your notification.
example: 'Your Garage Door Friend'
example: "Your Garage Door Friend"
target:
description: An array of targets to send the notification to. Optional depending on the platform.
example: platform specific
@ -21,7 +21,7 @@ apns_register:
fields:
push_id:
description: The device token, a 64 character hex string (256 bits). The device token is provided to you by your client app, which receives the token after registering itself with the remote notification service.
example: '72f2a8633655c5ce574fdc9b2b34ff8abdfc3b739b6ceb7a9ff06c1cbbf99f62'
example: "72f2a8633655c5ce574fdc9b2b34ff8abdfc3b739b6ceb7a9ff06c1cbbf99f62"
name:
description: A friendly name for the device (optional).
example: 'Sam''s iPhone'
example: "Sam's iPhone"

View file

@ -3,8 +3,7 @@ lock_n_go:
fields:
entity_id:
description: Entity id of the Nuki lock.
example: 'lock.front_door'
example: "lock.front_door"
unlatch:
description: Whether to unlatch the lock.
example: false

View file

@ -2,9 +2,7 @@
"domain": "nut",
"name": "Network UPS Tools (NUT)",
"documentation": "https://www.home-assistant.io/integrations/nut",
"requirements": [
"pynut2==2.1.2"
],
"requirements": ["pynut2==2.1.2"],
"codeowners": ["@bdraco"],
"config_flow": true
}

View file

@ -34,5 +34,4 @@
}
}
}
}

View file

@ -2,9 +2,6 @@
"domain": "opencv",
"name": "OpenCV",
"documentation": "https://www.home-assistant.io/integrations/opencv",
"requirements": [
"numpy==1.18.1",
"opencv-python-headless==4.2.0.32"
],
"requirements": ["numpy==1.18.1", "opencv-python-headless==4.2.0.32"],
"codeowners": []
}

View file

@ -3,10 +3,6 @@
"name": "Open ERZ",
"documentation": "https://www.home-assistant.io/integrations/openerz",
"dependencies": [],
"codeowners": [
"@misialq"
],
"requirements": [
"openerz-api==0.1.0"
]
"codeowners": ["@misialq"],
"requirements": ["openerz-api==0.1.0"]
}

View file

@ -5,20 +5,20 @@ reset_gateway:
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
set_clock:
description: Set the clock and day of the week on the connected thermostat.
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
date:
description: Optional date from which the day of the week will be extracted. Defaults to today.
example: '2018-10-23'
example: "2018-10-23"
time:
description: Optional time in 24h format which will be provided to the thermostat. Defaults to the current time.
example: '19:34'
example: "19:34"
set_control_setpoint:
description: >
@ -27,13 +27,13 @@ set_control_setpoint:
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
temperature:
description: >
The central heating setpoint to set on the gateway.
Values between 0 and 90 are accepted, but not all boilers support this range.
A value of 0 disables the central heating setpoint override.
example: '37.5'
example: "37.5"
set_hot_water_ovrd:
description: >
@ -41,7 +41,7 @@ set_hot_water_ovrd:
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
dhw_override:
description: >
Control the domestic hot water enable option. If the boiler has
@ -50,37 +50,37 @@ set_hot_water_ovrd:
that.
Value should be 0 or 1 to enable the override in off or on
state, or "A" to disable the override.
example: '1'
example: "1"
set_gpio_mode:
description: Change the function of the GPIO pins of the gateway.
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
id:
description: The ID of the GPIO pin. Either "A" or "B".
example: 'B'
example: "B"
mode:
description: >
Mode to set on the GPIO pin. Values 0 through 6 are accepted for both GPIOs, 7 is only accepted for GPIO "B".
See https://www.home-assistant.io/integrations/opentherm_gw/#gpio-modes for an explanation of the values.
example: '5'
example: "5"
set_led_mode:
description: Change the function of the LEDs of the gateway.
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
id:
description: The ID of the LED. Possible values are "A" through "F".
example: 'C'
example: "C"
mode:
description: >
The function to assign to the LED. One of "R", "X", "T", "B", "O", "F", "H", "W", "C", "E", "M" or "P".
See https://www.home-assistant.io/integrations/opentherm_gw/#led-modes for an explanation of the values.
example: 'F'
example: "F"
set_max_modulation:
description: >
@ -89,13 +89,13 @@ set_max_modulation:
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
level:
description: >
The modulation level to provide to the gateway.
Values between 0 and 100 will set the modulation level.
Provide a value of -1 to clear the override and forward the value from the thermostat again.
example: '42'
example: "42"
set_outside_temperature:
description: >
@ -104,20 +104,20 @@ set_outside_temperature:
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
temperature:
description: >
The temperature to provide to the thermostat.
Values between -40.0 and 64.0 will be accepted, but not all thermostats can display the full range.
Any value above 64.0 will clear a previously configured value (suggestion: 99)
example: '-2.3'
example: "-2.3"
set_setback_temperature:
description: Configure the setback temperature to be used with the GPIO away mode function.
fields:
gateway_id:
description: The gateway_id of the OpenTherm Gateway.
example: 'opentherm_gateway'
example: "opentherm_gateway"
temperature:
description: The setback temperature to configure on the gateway. Values between 0.0 and 30.0 are accepted.
example: '16.0'
example: "16.0"

View file

@ -2,8 +2,6 @@
"domain": "opnsense",
"name": "OPNSense",
"documentation": "https://www.home-assistant.io/integrations/opnsense",
"requirements": [
"pyopnsense==0.2.0"
],
"requirements": ["pyopnsense==0.2.0"],
"codeowners": ["@mtreinish"]
}

View file

@ -2,5 +2,5 @@ send:
description: Send RF code to Pilight device
fields:
protocol:
description: 'Protocol that Pilight recognizes. See https://manual.pilight.org/protocols/index.html for supported protocols and additional parameters that each protocol supports'
example: 'lirc'
description: "Protocol that Pilight recognizes. See https://manual.pilight.org/protocols/index.html for supported protocols and additional parameters that each protocol supports"
example: "lirc"

View file

@ -2,8 +2,6 @@
"domain": "proxy",
"name": "Camera Proxy",
"documentation": "https://www.home-assistant.io/integrations/proxy",
"requirements": [
"pillow==7.0.0"
],
"requirements": ["pillow==7.0.0"],
"codeowners": []
}

View file

@ -3,7 +3,7 @@ send_command:
fields:
entity_id:
description: Name(s) of entities to send command.
example: 'media_player.playstation_4'
example: "media_player.playstation_4"
command:
description: Button to press.
example: 'ps'
example: "ps"

View file

@ -2,9 +2,6 @@
"domain": "qrcode",
"name": "QR Code",
"documentation": "https://www.home-assistant.io/integrations/qrcode",
"requirements": [
"pillow==7.0.0",
"pyzbar==0.1.7"
],
"requirements": ["pillow==7.0.0", "pyzbar==0.1.7"],
"codeowners": []
}

View file

@ -2,17 +2,11 @@
"domain": "rachio",
"name": "Rachio",
"documentation": "https://www.home-assistant.io/integrations/rachio",
"requirements": [
"rachiopy==0.1.3"
],
"dependencies": [
"http"
],
"requirements": ["rachiopy==0.1.3"],
"dependencies": ["http"],
"codeowners": ["@bdraco"],
"config_flow": true,
"homekit": {
"models": [
"Rachio"
]
"models": ["Rachio"]
}
}

View file

@ -3,7 +3,7 @@ start_irrigation:
fields:
entity_id:
description: Name of a single irrigation to turn on
example: 'switch.sprinkler_1'
example: "switch.sprinkler_1"
duration:
description: Duration for this sprinkler to be turned on
example: 1

View file

@ -2,10 +2,6 @@
"domain": "rainforest_eagle",
"name": "Rainforest Eagle-200",
"documentation": "https://www.home-assistant.io/integrations/rainforest_eagle",
"requirements": [
"eagle200_reader==0.2.4",
"uEagle==0.0.1"
],
"codeowners": ["@gtdiehl",
"@jcalbert"]
"requirements": ["eagle200_reader==0.2.4", "uEagle==0.0.1"],
"codeowners": ["@gtdiehl", "@jcalbert"]
}

View file

@ -5,62 +5,62 @@ turn_on:
fields:
entity_id:
description: Name(s) of entities to turn on.
example: 'remote.family_room'
example: "remote.family_room"
activity:
description: Activity ID or Activity Name to start.
example: 'BedroomTV'
example: "BedroomTV"
toggle:
description: Toggles a device.
fields:
entity_id:
description: Name(s) of entities to toggle.
example: 'remote.family_room'
example: "remote.family_room"
turn_off:
description: Sends the Power Off Command.
fields:
entity_id:
description: Name(s) of entities to turn off.
example: 'remote.family_room'
example: "remote.family_room"
send_command:
description: Sends a command or a list of commands to a device.
fields:
entity_id:
description: Name(s) of entities to send command from.
example: 'remote.family_room'
example: "remote.family_room"
device:
description: Device ID to send command to.
example: '32756745'
example: "32756745"
command:
description: A single command or a list of commands to send.
example: 'Play'
example: "Play"
num_repeats:
description: An optional value that specifies the number of times you want to repeat the command(s). If not specified, the command(s) will not be repeated.
example: '5'
example: "5"
delay_secs:
description: An optional value that specifies that number of seconds you want to wait in between repeated commands. If not specified, the default of 0.4 seconds will be used.
example: '0.75'
example: "0.75"
hold_secs:
description: An optional value that specifies that number of seconds you want to have it held before the release is send. If not specified, the release will be send immediately after the press.
example: '2.5'
example: "2.5"
learn_command:
description: Learns a command or a list of commands from a device.
fields:
entity_id:
description: Name(s) of entities to learn command from.
example: 'remote.bedroom'
example: "remote.bedroom"
device:
description: Device ID to learn command from.
example: 'television'
example: "television"
command:
description: A single command or a list of commands to learn.
example: 'Turn on'
example: "Turn on"
alternative:
description: If code must be stored as alternative (useful for discrete remotes).
example: 'True'
example: "True"
timeout:
description: Timeout, in seconds, for the command to be learned.
example: '30'
example: "30"

View file

@ -1,5 +1,9 @@
send_command:
description: Send device command through RFLink.
fields:
command: {description: The command to be sent., example: 'on'}
device_id: {description: RFLink device ID., example: newkaku_0000c6c2_1}
command:
description: The command to be sent.
example: "on"
device_id:
description: RFLink device ID.
example: newkaku_0000c6c2_1

View file

@ -2,10 +2,6 @@
"domain": "roomba",
"name": "iRobot Roomba",
"documentation": "https://www.home-assistant.io/integrations/roomba",
"requirements": [
"roombapy==1.4.3"
],
"codeowners": [
"@pschmitt"
]
"requirements": ["roombapy==1.4.3"],
"codeowners": ["@pschmitt"]
}

View file

@ -11,8 +11,6 @@
"st": "urn:samsung.com:device:RemoteControlReceiver:1"
}
],
"codeowners": [
"@escoand"
],
"codeowners": ["@escoand"],
"config_flow": true
}

View file

@ -8,18 +8,18 @@ turn_on:
fields:
entity_id:
description: Name(s) of script to be turned on.
example: 'script.arrive_home'
example: "script.arrive_home"
turn_off:
description: Turn off script
fields:
entity_id:
description: Name(s) of script to be turned off.
example: 'script.arrive_home'
example: "script.arrive_home"
toggle:
description: Toggle script
fields:
entity_id:
description: Name(s) of script to be toggled.
example: 'script.arrive_home'
example: "script.arrive_home"

View file

@ -2,11 +2,7 @@
"domain": "sense",
"name": "Sense",
"documentation": "https://www.home-assistant.io/integrations/sense",
"requirements": [
"sense_energy==0.7.1"
],
"codeowners": [
"@kbickar"
],
"requirements": ["sense_energy==0.7.1"],
"codeowners": ["@kbickar"],
"config_flow": true
}

View file

@ -3,7 +3,7 @@ assume_state:
fields:
entity_id:
description: Name(s) of entities to change.
example: 'climate.kitchen'
example: "climate.kitchen"
state:
description: State to set.
example: 'idle'
example: "idle"

View file

@ -2,8 +2,6 @@
"domain": "seven_segments",
"name": "Seven Segments OCR",
"documentation": "https://www.home-assistant.io/integrations/seven_segments",
"requirements": [
"pillow==7.0.0"
],
"requirements": ["pillow==7.0.0"],
"codeowners": []
}

View file

@ -1,9 +1,12 @@
add_item:
description: Adds an item to the shopping list.
fields:
name: {description: The name of the item to add., example: Beer}
name:
description: The name of the item to add.
example: Beer
complete_item:
description: Marks an item as completed in the shopping list. It does not remove
the item.
description: Marks an item as completed in the shopping list. It does not remove the item.
fields:
name: {description: The name of the item to mark as completed., example: Beer}
name:
description: The name of the item to mark as completed.
example: Beer

View file

@ -2,11 +2,6 @@
"domain": "sighthound",
"name": "Sighthound",
"documentation": "https://www.home-assistant.io/integrations/sighthound",
"requirements": [
"pillow==7.0.0",
"simplehound==0.3"
],
"codeowners": [
"@robmarkcole"
]
"requirements": ["pillow==7.0.0", "simplehound==0.3"],
"codeowners": ["@robmarkcole"]
}

View file

@ -3,28 +3,28 @@ join:
fields:
master:
description: Entity ID of the player to synchronize to.
example: 'media_player.living_room'
example: "media_player.living_room"
entity_id:
description: Entity ID of the players to join to the "master".
example: 'media_player.bedroom'
example: "media_player.bedroom"
unjoin:
description: Unjoin the player from a group.
fields:
entity_id:
description: Entity ID of the player to unjoin.
example: 'media_player.living_room'
example: "media_player.living_room"
snapshot:
description: Take a snapshot of the media player.
fields:
entity_id:
description: Name(s) of entities that will be snapshotted. Platform dependent.
example: 'media_player.living_room'
example: "media_player.living_room"
restore:
description: Restore a snapshot of the media player.
fields:
entity_id:
description: Name(s) of entities that will be restored. Platform dependent.
example: 'media_player.living_room'
example: "media_player.living_room"

View file

@ -4,10 +4,10 @@ set_sound_setting:
fields:
entity_id:
description: Target device.
example: 'media_player.my_soundbar'
example: "media_player.my_soundbar"
name:
description: Name of the setting.
example: 'nightMode'
example: "nightMode"
value:
description: Value to set.
example: 'on'
example: "on"

View file

@ -3,74 +3,74 @@ join:
fields:
master:
description: Entity ID of the player that should become the coordinator of the group.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
entity_id:
description: Name(s) of entities that will join the master.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
unjoin:
description: Unjoin the player from a group.
fields:
entity_id:
description: Name(s) of entities that will be unjoined from their group.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
snapshot:
description: Take a snapshot of the media player.
fields:
entity_id:
description: Name(s) of entities that will be snapshot.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
with_group:
description: True (default) or False. Also snapshot the group layout.
example: 'true'
example: "true"
restore:
description: Restore a snapshot of the media player.
fields:
entity_id:
description: Name(s) of entities that will be restored.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
with_group:
description: True (default) or False. Also restore the group layout.
example: 'true'
example: "true"
set_sleep_timer:
description: Set a Sonos timer.
fields:
entity_id:
description: Name(s) of entities that will have a timer set.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
sleep_time:
description: Number of seconds to set the timer.
example: '900'
example: "900"
clear_sleep_timer:
description: Clear a Sonos timer.
fields:
entity_id:
description: Name(s) of entities that will have the timer cleared.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
set_option:
description: Set Sonos sound options.
fields:
entity_id:
description: Name(s) of entities that will have options set.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
night_sound:
description: Enable Night Sound mode
example: 'true'
example: "true"
speech_enhance:
description: Enable Speech Enhancement mode
example: 'true'
example: "true"
play_queue:
description: Starts playing the queue from the first item.
fields:
entity_id:
description: Name(s) of entities that will start playing.
example: 'media_player.living_room_sonos'
example: "media_player.living_room_sonos"
queue_position:
description: Position of the song in the queue to start playing from.
example: '0'
example: "0"

View file

@ -3,34 +3,34 @@ play_everywhere:
fields:
master:
description: Name of the master entity that will coordinate the grouping. Platform dependent. It is a shortcut for creating a multi-room zone with all devices
example: 'media_player.soundtouch_home'
example: "media_player.soundtouch_home"
create_zone:
description: Create a Sountouch multi-room zone.
fields:
master:
description: Name of the master entity that will coordinate the multi-room zone. Platform dependent.
example: 'media_player.soundtouch_home'
example: "media_player.soundtouch_home"
slaves:
description: Name of slaves entities to add to the new zone.
example: 'media_player.soundtouch_bedroom'
example: "media_player.soundtouch_bedroom"
add_zone_slave:
description: Add a slave to a Sountouch multi-room zone.
fields:
master:
description: Name of the master entity that is coordinating the multi-room zone. Platform dependent.
example: 'media_player.soundtouch_home'
example: "media_player.soundtouch_home"
slaves:
description: Name of slaves entities to add to the existing zone.
example: 'media_player.soundtouch_bedroom'
example: "media_player.soundtouch_bedroom"
remove_zone_slave:
description: Remove a slave from the Sounttouch multi-room zone.
fields:
master:
description: Name of the master entity that is coordinating the multi-room zone. Platform dependent.
example: 'media_player.soundtouch_home'
example: "media_player.soundtouch_home"
slaves:
description: Name of slaves entities to remove from the existing zone.
example: 'media_player.soundtouch_bedroom'
example: "media_player.soundtouch_bedroom"

View file

@ -3,10 +3,10 @@ call_method:
fields:
entity_id:
description: Name(s) of the Squeezebox entities where to run the API method.
example: 'media_player.squeezebox_radio'
example: "media_player.squeezebox_radio"
command:
description: Command to pass to Logitech Media Server (p0 in the CLI documentation).
example: 'playlist'
example: "playlist"
parameters:
description: Array of additional parameters to pass to Logitech Media Server (p1, ..., pN in the CLI documentation).
example: ["loadtracks", "album.titlesearch="]

View file

@ -5,18 +5,18 @@ turn_on:
fields:
entity_id:
description: Name(s) of entities to turn on
example: 'switch.living_room'
example: "switch.living_room"
turn_off:
description: Turn a switch off.
fields:
entity_id:
description: Name(s) of entities to turn off.
example: 'switch.living_room'
example: "switch.living_room"
toggle:
description: Toggles a switch state.
fields:
entity_id:
description: Name(s) of entities to toggle.
example: 'switch.living_room'
example: "switch.living_room"

View file

@ -1,9 +1,9 @@
set_auto_off:
description: 'Update Switcher device auto off setting.'
description: "Update Switcher device auto off setting."
fields:
entity_id:
description: "Name of the entity id associated with the integration, used for permission validation."
example: "switch.switcher_kis_boiler"
auto_off:
description: 'Time period string containing hours and minutes.'
description: "Time period string containing hours and minutes."
example: '"02:30"'

Some files were not shown because too many files have changed in this diff Show more