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

home-assistant / home-assistant / 20434
94%

Build:
DEFAULT BRANCH: dev
Ran 21 Feb 2017 07:56AM UTC
Jobs 5
Files 218
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
20434

push

travis-ci

pvizeli
New component 'insteon_plm' and related platforms (#6104)

* Connect to PLM and process simple protocol callbacks

* Baseline commit

* Connect to PLM and process simple protocol callbacks

* Baseline commit

* Connection working again

* Async add devices is working via callback now

* Beginning to interface with PLM library for control and state

* Deal with brightness in 255 levels with library

* Change sub names to match API changes

* Remove PLM-level update callback

* Support dimmable based on underlying PLM device attributes

* Expand to non-light platforms

* Stubs for turn on and off

* Current version of Python library

* Amend to use switch device attributes

* Use asyncio endpoints for control

* Add logging line

* Bump module version to 0.7.1

* Auto-load platforms, display device info/attributes

* Unify method name for getting a device attribute

* Require Current version of insteonplm module

* Import the component function in each platform in the balloob-recommend manner

* For consistency, handle switch state as onlevel just like lights

* Use level 0xff for on state, even with binary switches

Observing the behavior of a 2477S switch, it looks like even the non-dimmable
devices use 0x00 and 0xff for off/on respectively.  I was using 0x01 for on
previously, but that yields unnecessary state change callbacks when message
traffic ends up flipping the onlevel from 0xff to 0x01 or 0x01 to 0xff.

* Use sensorstate attribute for sensor onoff

* Move new device callback to devices attribute

* Add support for platform override on a device

* Bump version of insteonplm module

* Default overrides is an empty list

* Avoid calling private methods when doing common attributes

* Remove unused CONF_DEBUG for now

* flake8 and pylint code cleanup

* Move get_component to local function where it is needed

* Update to include insteonplm module.

* New files for insteon_plm component

* Legitimate class doctring instead of stub

* Docstring changes.

* Style changes as requested by @SEJeff

* Changes requested by @pvizeli

* Add @callback decorator to callback functions

* Opportunistic platform loading triggered by qualifying device detection

Instead of loading all the constituent platforms that comprise the insteon_plm
component, instead we defer and wait until we receive a callback for a device
that requires the platform.

18326 of 19568 relevant lines covered (93.65%)

2.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20434.1 (TOXENV=py34) 21 Feb 2017 08:00AM UTC 0
93.65
Travis Job 20434.1
2 20434.2 (TOXENV=requirements) 21 Feb 2017 07:56AM UTC 0
Travis Job 20434.2
3 20434.3 (TOXENV=lint) 21 Feb 2017 08:03AM UTC 0
Travis Job 20434.3
4 20434.4 (TOXENV=py35) 21 Feb 2017 08:03AM UTC 0
93.64
Travis Job 20434.4
5 20434.5 (TOXENV=py36) 21 Feb 2017 08:03AM UTC 0
93.63
Travis Job 20434.5
Source Files on build 20434
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #20434
  • 3beb87c5 on github
  • Prev Build on dev (#20432)
  • Next Build on dev (#20435)
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