Skip to content

Commit afd6b7a

Browse files
authored
Quote some strings in rest docs (home-assistant#27593)
1 parent d953e1e commit afd6b7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/_integrations/sensor.rest.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ sensor:
291291

292292
```yaml
293293
rest:
294-
- resource: http://date.jsontest.com/
294+
- resource: "http://date.jsontest.com/"
295295
sensor:
296296
- name: "Time"
297297
value_template: "{{ value_json.time }}"
@@ -331,7 +331,7 @@ This sample fetches a weather report from [OpenWeatherMap](https://openweatherma
331331

332332
```yaml
333333
rest:
334-
- resource: https://api.openweathermap.org/data/2.5/weather?zip=80302,us&APPID=VERYSECRETAPIKEY
334+
- resource: "https://api.openweathermap.org/data/2.5/weather?zip=80302,us&APPID=VERYSECRETAPIKEY"
335335
sensor:
336336
- name: "Report"
337337
value_template: "{{ value_json['weather'][0]['description'].title() }}"
@@ -385,7 +385,7 @@ This configuration shows how to extract multiple values from a dictionary. This
385385

386386
```yaml
387387
rest:
388-
resource: http://<address_to_rest_service>
388+
resource: "http://<address_to_rest_service>"
389389
sensor:
390390
- name: "Bedroom1 Temperature"
391391
value_template: "{{ value_json['bedroom1']['temperature'] }}"
@@ -414,11 +414,11 @@ The example below shows how to extract multiple values from a dictionary from th
414414
```yaml
415415
rest:
416416
# Steam Controller
417-
- resource: http://192.168.1.105/status.xml
417+
- resource: "http://192.168.1.105/status.xml"
418418
scan_interval: 15
419419
420420
sensor:
421-
- name: Steam Temp
421+
- name: "Steam Temp"
422422
value_template: "{{ json_value['response']['temp0'] | regex_findall_index('([0-9]+)XF') }}"
423423
unit_of_measurement: "°F"
424424

0 commit comments

Comments
 (0)