Skip to content

Commit 48f923a

Browse files
authored
Fix energy price example (home-assistant#19750)
1 parent b9e3ca9 commit 48f923a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/_integrations/scrape.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ sensor:
173173
- platform: scrape
174174
resource: https://elen.nu/timpriser-pa-el-for-elomrade-se3-stockholm/
175175
name: Electricity price
176-
select: ".elspot-content"
177-
value_template: '{{ ((value.split(" ")[0]) | replace (",", ".")) }}'
176+
select: ".text-lg:is(span)"
177+
index: 1
178+
value_template: '{{ value | replace (",", ".") | float }}'
178179
unit_of_measurement: "öre/kWh"
179180
```
180181

0 commit comments

Comments
 (0)