Skip to content

Commit

Permalink
Prettify yaml (services.yaml) (#68878)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Mar 30, 2022
1 parent 18517fd commit bfd84ba
Show file tree
Hide file tree
Showing 51 changed files with 282 additions and 294 deletions.
12 changes: 6 additions & 6 deletions homeassistant/components/ads/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ write_data_by_name:
selector:
select:
options:
- 'bool'
- 'byte'
- 'dint'
- 'int'
- 'udint'
- 'uint'
- "bool"
- "byte"
- "dint"
- "int"
- "udint"
- "uint"
value:
name: Value
description: The value to write to the variable.
Expand Down
26 changes: 13 additions & 13 deletions homeassistant/components/amcrest/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ set_color_bw:
selector:
select:
options:
- 'auto'
- 'bw'
- 'color'
- "auto"
- "bw"
- "color"

start_tour:
name: Start tour
Expand Down Expand Up @@ -142,16 +142,16 @@ ptz_control:
selector:
select:
options:
- 'down'
- 'left'
- 'left_down'
- 'left_up'
- 'right'
- 'right_down'
- 'right_up'
- 'up'
- 'zoom_in'
- 'zoom_out'
- "down"
- "left"
- "left_down"
- "left_up"
- "right"
- "right_down"
- "right_up"
- "up"
- "zoom_in"
- "zoom_out"
travel_time:
name: Travel time
description: "Travel time in fractional seconds: from 0 to 1."
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/bond/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,3 @@ stop:
entity:
integration: bond
domain: light

3 changes: 1 addition & 2 deletions homeassistant/components/browser/services.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
browse_url:
name: Browse
description:
Open a URL in the default browser on the host machine of Home Assistant.
description: Open a URL in the default browser on the host machine of Home Assistant.
fields:
url:
name: URL
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/eight_sleep/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ heat_set:
number:
min: -100
max: 100
unit_of_measurement: '°'
unit_of_measurement: "°"
4 changes: 2 additions & 2 deletions homeassistant/components/elkm1/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ alarm_display_message:
name: Line 1
description: Up to 16 characters of text (truncated if too long).
example: The answer to life.
default: ''
default: ""
selector:
text:
line2:
name: Line 2
description: Up to 16 characters of text (truncated if too long).
example: the universe, and everything.
default: ''
default: ""
selector:
text:

Expand Down
12 changes: 6 additions & 6 deletions homeassistant/components/evohome/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ set_system_mode:
selector:
select:
options:
- 'Auto'
- 'AutoWithEco'
- 'Away'
- 'Custom'
- 'DayOff'
- 'HeatingOff'
- "Auto"
- "AutoWithEco"
- "Away"
- "Custom"
- "DayOff"
- "HeatingOff"
period:
name: Period
description: >-
Expand Down
14 changes: 7 additions & 7 deletions homeassistant/components/ezviz/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ set_alarm_detection_sensibility:
fields:
level:
name: Sensitivity Level
description: 'Sensibility level (1-6) for type 0 (Normal camera)
or (1-100) for type 3 (PIR sensor camera).'
description: "Sensibility level (1-6) for type 0 (Normal camera)
or (1-100) for type 3 (PIR sensor camera)."
required: true
example: 3
default: 3
Expand All @@ -74,15 +74,15 @@ set_alarm_detection_sensibility:
mode: box
type_value:
name: Detection type
description: 'Type of detection. Options : 0 - Camera or 3 - PIR Sensor Camera'
description: "Type of detection. Options : 0 - Camera or 3 - PIR Sensor Camera"
required: true
example: '0'
default: '0'
example: "0"
default: "0"
selector:
select:
options:
- '0'
- '3'
- "0"
- "3"
sound_alarm:
name: Sound Alarm
description: Sounds the alarm on your camera.
Expand Down
10 changes: 5 additions & 5 deletions homeassistant/components/flo/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ set_sleep_mode:
selector:
select:
options:
- '120'
- '1440'
- '4320'
- "120"
- "1440"
- "4320"
revert_to_mode:
name: Revert to mode
description: The mode to revert to after sleep_minutes has elapsed.
default: true
selector:
select:
options:
- 'away'
- 'home'
- "away"
- "home"
set_away_mode:
name: Set away mode
description: Set the location into away mode.
Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/flux_led/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ set_custom_effect:
unit_of_measurement: "%"
transition:
description: Effect transition.
example: 'jump'
default: 'gradual'
example: "jump"
default: "gradual"
required: false
selector:
select:
Expand Down Expand Up @@ -66,8 +66,8 @@ set_zones:
unit_of_measurement: "%"
effect:
description: Effect
example: 'running_water'
default: 'static'
example: "running_water"
default: "static"
required: false
selector:
select:
Expand Down
16 changes: 8 additions & 8 deletions homeassistant/components/foscam/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ ptz:
selector:
select:
options:
- 'bottom_left'
- 'bottom_right'
- 'down'
- 'left'
- 'right'
- 'top_left'
- 'top_right'
- 'up'
- "bottom_left"
- "bottom_right"
- "down"
- "left"
- "right"
- "top_left"
- "top_right"
- "up"
travel_time:
description: "Travel time in seconds."
default: 0.125
Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/geniushub/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ set_zone_mode:
selector:
select:
options:
- 'off'
- 'timer'
- 'footprint'
- "off"
- "timer"
- "footprint"

set_zone_override:
name: Set zone override
Expand All @@ -47,7 +47,7 @@ set_zone_override:
min: 4
max: 28
step: 0.1
unit_of_measurement: '°'
unit_of_measurement: "°"
duration:
name: Duration
description: >-
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/hdmi_cec/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ volume:
selector:
select:
options:
- 'off'
- 'on'
- 'toggle'
- "off"
- "on"
- "toggle"
up:
name: Up
description: Increases volume x levels.
Expand Down
10 changes: 5 additions & 5 deletions homeassistant/components/homematic/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ set_device_value:
selector:
select:
options:
- 'boolean'
- 'dateTime.iso8601'
- 'double'
- 'int'
- 'string'
- "boolean"
- "dateTime.iso8601"
- "double"
- "int"
- "string"

reconnect:
name: Reconnect
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/homematicip_cloud/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ activate_vacation:
min: 0
max: 55
step: 0.5
unit_of_measurement: '°'
unit_of_measurement: "°"
accesspoint_id:
name: Accesspoint ID
description: The ID of the Homematic IP Access Point
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/humidifier/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set_mode:
mode:
description: New mode
required: true
example: 'away'
example: "away"
selector:
text:

Expand Down
Loading

0 comments on commit bfd84ba

Please sign in to comment.