Merge pull request #4817 from nsimb/patch-2

Added replace from , to . for float handling
This commit is contained in:
DubhAd 2018-03-03 14:51:06 +00:00 committed by GitHub
commit 7149ad73be
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 %}