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

GadgetReactor / pyHS100 / 313
80%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2019 09:05PM UTC
Jobs 3
Files 7
Run time 4min
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
313

push

travis-ci

web-flow
API and tests cleanup (#151)

* Add new cli commands: raw_command and dump_discover

- raw_command can be used to execute raw commands with given parameters
  * Useful for testing new calls before implementing them properly

- dump_discover can be used to dump the device discovery information (into a file)
  * The discovery is extended to request more modules and methods from devices
    * smartlife.iot.dimmer get_dimmer_parameters
    * smartlife.iot.common.emeter get_realtime
    * smartlife.iot.smartbulb.lightingservice get_light_state
  * This is used to dump more information for proper tests, and will also allow better discovery in the future

This commit contains also some documentation updates and dropping click_datetime in favor of click's built-in datetime

* Docstring fixes

* Major API cleanup

Properties shall no more change the state of the device, this work in still in progress, the main goal being making the API more user-friendly and to make implementing new features simpler.

The newly deprecated functionality will remain working and will simply warn the user about deprecation.
Previously deprecated 'features' property and 'identify' method are now finally removed.

Deprecate and replace the following property setters:
* state with turn_on() and turn_off()
* hsv with set_hsv()
* color_temp with set_color_temp()
* brightness with set_brightness()
* led with set_led()
* alias with set_alias()
* mac with set_mac()

And getters:
* state with is_on and is_off

The {BULB,PLUG}_STATE_{ON,OFF} is simplified to STATE_ON and STATE_OFF, UNKNOWN state is removed.
These are now deprecated and will be removed in the future.
* is_on and is_off can be used to check for the state
* turn_on() and turn_off() for changing the device state.

Trying to use functionality not supported by the device will cause SmartDeviceExceptions instead of failing silently and/or returning None.
This includes, e.g., trying to set a... (continued)

193 of 264 branches covered (73.11%)

Branch coverage included in aggregate %.

313 of 313 new or added lines in 7 files covered. (100.0%)

617 of 745 relevant lines covered (82.82%)

2.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 313.1 16 Jun 2019 09:06PM UTC 0
80.49
Travis Job 313.1
2 313.2 16 Jun 2019 09:10PM UTC 0
80.49
Travis Job 313.2
3 313.3 16 Jun 2019 09:05PM UTC 0
80.49
Travis Job 313.3
Source Files on build 313
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #313
  • 2d60467b on github
  • Prev Build on master (#307)
  • Next Build on master (#318)
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

© 2025 Coveralls, Inc