Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

More sensor configurations: play_time and evolution_factor. #27

Merged
merged 4 commits into from
Sep 9, 2015

Conversation

narc0tiq
Copy link
Owner

@narc0tiq narc0tiq commented Sep 9, 2015

As requested in #21 and #22, the play time and evolution factor sensors now have their own config:

  • Playing time: can now show days (if over 24 hours played) and hide seconds (for those preferring h:mm to h:mm:ss).
  • Evolution factor: can now show four digits of precision instead of one.

A bit of rearrangement has also been done to make the code cleaner; in particular, the value_sensor template now knows how to do the invariant parts of per-sensor settings, so each sensor need only define how their settings GUI looks, and react to settings defined in self.settings.

Special mention for #23: more locale bits have been added yet again.

@narc0tiq narc0tiq merged commit 453747a into master Sep 9, 2015
narc0tiq added a commit that referenced this pull request Sep 9, 2015
@narc0tiq narc0tiq deleted the more-config branch September 9, 2015 08:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant