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

rytilahti / python-miio / 1540
73%
master: 74%

Build:
Build:
LAST BUILD BRANCH: fix/bump_cryptography_dep
DEFAULT BRANCH: master
Ran 15 Mar 2020 09:20PM UTC
Jobs 2
Files 43
Run time 12s
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
1540

Pull #643

travis-ci

web-flow
Add fan_speed_presets() for querying available fan speeds

This returns a dictionary {name, value} of the available fan speeds,
the main driver being the need to simplify homeassistant integrations for different devices.

For viomi vacuums this is currently straightforward and hard-coded, but we do special handling
for rockrobo devices (based on info() responses):

* If the query succeeds, newer firmware versions (3.5.7+) of v1 are handled as a special case,
  otherwise the new-style [100-105] mapping is returned.

* If the query fails, we fall back to rockrobo v1's percentage-based mapping.
  This happens, e.g., when the vacuum has no cloud connectivity.

Related to #523

Related downstream issues
https://github.com/home-assistant/core/pull/32821
https://github.com/home-assistant/core/issues/31268
https://github.com/home-assistant/core/issues/27268
Pull Request #643: Add fan_speed_presets() for querying available fan speeds

554 of 951 branches covered (58.25%)

Branch coverage included in aggregate %.

44 of 44 new or added lines in 2 files covered. (100.0%)

3919 of 5104 relevant lines covered (76.78%)

1.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1540.1 15 Mar 2020 09:20PM UTC 0
74.03
Travis Job 1540.1
2 1540.2 15 Mar 2020 09:20PM UTC 0
74.03
Travis Job 1540.2
Source Files on build 1540
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #1540
  • Pull Request #643
  • PR Base - master (#1538)
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