Comments (7)
Thanks a lot. Really appreciate it. Again, great sensor.
from sensor.moneydashboard.
Hi Daryn,
Thanks for checking it out!
There's 2 options to solve this:
- I can provide a configuration option to
"convert_to_float"
which would pre-format the value for you - In your template, you could use the
replace
method like so:{{ value.replace(",", "") }}
which would remove the comma.
The initial idea of this sensor was just to have it so it would automatically feed into lovelace without any additional configuration, but I'm happy to add it if enough people want it.
from sensor.moneydashboard.
Thanks for the quick reply.
I would love the option to change it in the config if you have time. I don't think it should be a string to start with. It messes with my history for all my GBP sensors as it picks up a number like 1,000 as 1.
from sensor.moneydashboard.
It messes with my history for all my GBP sensors as it picks up a number like 1,000 as 1
Fair point, I hadn't noticed that.
I'll set the default action to return as a float then put some documentation in on how to template it to have the comma for display purposes.
Won't take too long
from sensor.moneydashboard.
Fixed in https://github.com/shutupflanders/sensor.moneydashboard/releases/tag/1.0.2
from sensor.moneydashboard.
@darynwilkinson should be fixed and available in HACS to update - let me know if you run into any more problems.
Thanks again.
from sensor.moneydashboard.
Thanks. Just updated and that's looking good now.
from sensor.moneydashboard.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensor.moneydashboard.