From df760a352ffa88fe6be4b1a31b9d20236e3cc79b Mon Sep 17 00:00:00 2001 From: tiagofreire-pt <41837236+tiagofreire-pt@users.noreply.github.com> Date: Thu, 2 May 2019 08:47:46 +0100 Subject: [PATCH] Replaced "nth-of-type()" tag by "index" variable (#9361) "nth-of-type()" deprecated and replaced by index sensor variable, since HA 0.86 (approx.). --- source/_components/scrape.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/_components/scrape.markdown b/source/_components/scrape.markdown index f427b7de3ef..458e8876e1f 100644 --- a/source/_components/scrape.markdown +++ b/source/_components/scrape.markdown @@ -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 ```