Code Monkey home page Code Monkey logo

Comments (6)

mampfes avatar mampfes commented on May 24, 2024

Hi, I think I got your point :-)

Adding an attribute to support sorting of entities in the UI sounds reasonable and feasible. I didn't add it be default so far, because this would pollute the "more-info" window. I would add an option to the configuration which appends a daysTo attribute.

I'm not sure if an attribute_template is a good idea, because this would add a lot of complexity if you want to support arbitrary informations, like list of upcoming events, etc.

Currently I work on another feature (calendar). I would look into your request after I have finished this feature.

Regards

from hacs_waste_collection_schedule.

i-C-o-d-e-r avatar i-C-o-d-e-r commented on May 24, 2024

Thanks! Looking forward to try it out.

from hacs_waste_collection_schedule.

mampfes avatar mampfes commented on May 24, 2024

Please check version 1.2.0. You now have to ability add an attribute daysTo to the entity state if you add add_days_to: True to the sensor configuration of your waste type specific sensor.

Please let me know if this works for you.

from hacs_waste_collection_schedule.

i-C-o-d-e-r avatar i-C-o-d-e-r commented on May 24, 2024

It works perfectly! Thank you very much for this lightning fast implementation of my feature request. I appreciate it.

from hacs_waste_collection_schedule.

martin3000 avatar martin3000 commented on May 24, 2024

why is the "daysTo" attribute not standard (default)? is there any disadvantage in having it?

from hacs_waste_collection_schedule.

mampfes avatar mampfes commented on May 24, 2024

daysTo has been added later. And as I didn't want to change the existing configurations it is an optional attribute.

from hacs_waste_collection_schedule.

Related Issues (20)

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.