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

home-assistant / home-assistant / 28292 / 4
94%
dev: 94%

Build:
DEFAULT BRANCH: dev
Ran 20 Aug 2017 06:48PM UTC
Files 283
Run time 14s
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

20 Aug 2017 06:29PM UTC coverage: 93.757%. Remained the same
TOXENV=py36

push

travis-ci

web-flow
LIFX: avoid rare NoneType errors (#9054)

* Get full multizone state during registration

We used to rely on the periodic update to get the state of each zone, only
establishing the number of zones during registration. This resulted in errors
if the current state was needed for a partial color change before the first
async_update happened.

Now we do a full update before adding the light. Thus async_update can no
longer assume device.color_zones to be defined and must instead use the
response message to decide the total number of zones.

* Insist on getting the initial state

If a response to the initial state query is lost we used to just carry on.
This resulted in type errors when we next tried to access the undefined state.

After this commit the light is not added before we have the full state.

This scenario mostly happens when something is misbehaving and the type errors
were actually useful in figuring out what happend. So an error message is
logged in their place.

* Remove lint

24643 of 26284 relevant lines covered (93.76%)

0.94 hits per line

Source Files on job 28292.4 (TOXENV=py36)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28292
  • Travis Job 28292.4
  • fee89d8d on github
  • Prev Job for TOXENV=py36 on dev (#28288.4)
  • Next Job for TOXENV=py36 on dev (#28295.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