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

balloob / home-assistant / 5967
93%
dev: 93%

Build:
Build:
LAST BUILD BRANCH: service-validations
DEFAULT BRANCH: dev
Ran 06 Apr 2016 06:58PM UTC
Jobs 2
Files 132
Run time 2min
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

pending completion
5967

Pull #1727

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.
Pull Request #1727: 0.17

8958 of 9635 relevant lines covered (92.97%)

1.86 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
homeassistant/components/automation/state.py
1
100.0
homeassistant/components/rollershutter/__init__.py
1
100.0
homeassistant/components/sensor/rfxtrx.py
1
100.0
homeassistant/components/automation/template.py
2
100.0
homeassistant/helpers/service.py
2
100.0
homeassistant/components/automation/zone.py
3
100.0
homeassistant/components/media_player/universal.py
3
100.0
homeassistant/components/light/__init__.py
3
100.0
homeassistant/components/device_tracker/__init__.py
4
100.0
homeassistant/components/frontend/__init__.py
5
100.0
homeassistant/components/thermostat/__init__.py
5
100.0
homeassistant/components/script.py
5
100.0
homeassistant/components/group.py
6
100.0
homeassistant/components/automation/__init__.py
6
100.0
homeassistant/components/conversation.py
6
100.0
homeassistant/loader.py
6
100.0
homeassistant/core.py
7
100.0
homeassistant/components/rfxtrx.py
10
100.0
homeassistant/components/device_tracker/owntracks.py
18
100.0
homeassistant/bootstrap.py
19
100.0
homeassistant/components/media_player/__init__.py
24
100.0
homeassistant/components/http.py
25
100.0
homeassistant/util/location.py
30
100.0
homeassistant/components/mqtt/__init__.py
39
100.0
homeassistant/components/camera/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 5967.1 (TOXENV=py34) 06 Apr 2016 06:58PM UTC 0
92.97
Travis Job 5967.1
4 5967.4 (TOXENV=py35) 06 Apr 2016 07:00PM UTC 0
92.97
Travis Job 5967.4
Source Files on build 5967
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5967
  • Pull Request #1727
  • PR Base - master (#5739)
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