• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

balloob / home-assistant / 5966 / 4
93%
dev: 93%

Build:
DEFAULT BRANCH: dev
Ran 06 Apr 2016 06:59PM UTC
Files 132
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Apr 2016 06:54PM UTC coverage: 92.953% (-0.008%) from 92.961%
TOXENV=py35

push

travis-ci

balloob
Use whole degrees fahrenheit for thermostats

Users of fahrenheit generally expect to see whole degrees. The fahreneit

scale is suffiently precise that decimals aren't really useful in terms

of temperatures humans care about.



This change rounds fahrenheit values to whole degrees and celsius values

to one decimal place. It also renames the ThermostatDevice._convert()

method to _convert_for_display(), making its purpose more clear. It is

not useful for the min_temp() and max_temp() methods, as those relate to

the internal state of the ThermostatDevice object, and may use different

units. Adding optional source and target units to _convert() would have

added needless complexity, it's cleaner to just use convert() in those

methods.

8956 of 9635 relevant lines covered (92.95%)

0.93 hits per line

Source Files on job 5966.4 (TOXENV=py35)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5966
  • Travis Job 5966.4
  • 29fb6faa on github
  • Prev Job for TOXENV=py35 on dev (#5964.4)
  • Next Job for TOXENV=py35 on dev (#5969.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc