Added replace from , to . for float handling

Since the website saves numbers with , the sensor ends up with "," when trying to use it in automations float does not work.
So i thought i added this if somone ells uses the example
This commit is contained in:
nsimb 2018-03-03 11:46:49 +01:00 committed by GitHub
parent 29840a1ec4
commit e0f5d86582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ sensor:
resource: https://elen.nu/timpriser-pa-el-for-elomrade-se3-stockholm/
name: Electricity price
select: ".elspot-content"
value_template: '{{ value.split(" ")[0] }}'
value_template: '{{ ((value.split(" ")[0]) | replace (",", ".")) }}'
unit_of_measurement: "öre/kWh"
```
{% endraw %}