Replaced "nth-of-type()" tag by "index" variable (#9361)

"nth-of-type()" deprecated and replaced by index sensor variable, since HA 0.86 (approx.).
This commit is contained in:
tiagofreire-pt 2019-05-02 08:47:46 +01:00 committed by Fabian Affolter
parent 08ba526863
commit df760a352f

View File

@ -118,7 +118,8 @@ sensor:
- platform: scrape
resource: http://www.bfs.de/DE/themen/opt/uv/uv-index/prognose/prognose_node.html
name: Coast Ostsee
select: 'p:nth-of-type(19)'
select: 'p'
index: 19
unit_of_measurement: 'UV Index'
```
@ -145,7 +146,8 @@ sensor:
- platform: scrape
resource: https://hasspodcast.io/feed/podcast
name: Home Assistant Podcast
select: 'enclosure:nth-of-type(1)'
select: 'enclosure'
index: 1
attribute: url
```