Giter VIP home page Giter VIP logo

Comments (7)

darynwilkinson avatar darynwilkinson commented on August 14, 2024 1

Thanks a lot. Really appreciate it. Again, great sensor.

from sensor.moneydashboard.

shutupflanders avatar shutupflanders commented on August 14, 2024

Hi Daryn,
Thanks for checking it out!
There's 2 options to solve this:

  1. I can provide a configuration option to "convert_to_float" which would pre-format the value for you
  2. 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.

darynwilkinson avatar darynwilkinson commented on August 14, 2024

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.

shutupflanders avatar shutupflanders commented on August 14, 2024

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.

shutupflanders avatar shutupflanders commented on August 14, 2024

Fixed in https://github.com/shutupflanders/sensor.moneydashboard/releases/tag/1.0.2

from sensor.moneydashboard.

shutupflanders avatar shutupflanders commented on August 14, 2024

@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.

darynwilkinson avatar darynwilkinson commented on August 14, 2024

Thanks. Just updated and that's looking good now.

from sensor.moneydashboard.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.