mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-07 17:36:50 +00:00
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:
parent
08ba526863
commit
df760a352f
@ -118,7 +118,8 @@ sensor:
|
|||||||
- platform: scrape
|
- platform: scrape
|
||||||
resource: http://www.bfs.de/DE/themen/opt/uv/uv-index/prognose/prognose_node.html
|
resource: http://www.bfs.de/DE/themen/opt/uv/uv-index/prognose/prognose_node.html
|
||||||
name: Coast Ostsee
|
name: Coast Ostsee
|
||||||
select: 'p:nth-of-type(19)'
|
select: 'p'
|
||||||
|
index: 19
|
||||||
unit_of_measurement: 'UV Index'
|
unit_of_measurement: 'UV Index'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -145,7 +146,8 @@ sensor:
|
|||||||
- platform: scrape
|
- platform: scrape
|
||||||
resource: https://hasspodcast.io/feed/podcast
|
resource: https://hasspodcast.io/feed/podcast
|
||||||
name: Home Assistant Podcast
|
name: Home Assistant Podcast
|
||||||
select: 'enclosure:nth-of-type(1)'
|
select: 'enclosure'
|
||||||
|
index: 1
|
||||||
attribute: url
|
attribute: url
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user