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

home-assistant / home-assistant / 28292
94%

Build:
DEFAULT BRANCH: dev
Ran 20 Aug 2017 06:40PM UTC
Jobs 5
Files 283
Run time 7min
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
28292

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

24649 of 26284 relevant lines covered (93.78%)

2.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28292.1 (TOXENV=lint) 20 Aug 2017 06:48PM UTC 0
Travis Job 28292.1
2 28292.2 (TOXENV=py34) 20 Aug 2017 06:42PM UTC 0
93.76
Travis Job 28292.2
3 28292.3 (TOXENV=py35) 20 Aug 2017 06:40PM UTC 0
93.76
Travis Job 28292.3
4 28292.4 (TOXENV=py36) 20 Aug 2017 06:48PM UTC 0
93.76
Travis Job 28292.4
5 28292.5 (TOXENV=requirements) 20 Aug 2017 06:42PM UTC 0
Travis Job 28292.5
Source Files on build 28292
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #28292
  • fee89d8d on github
  • Prev Build on dev (#28288)
  • Next Build on dev (#28295)
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