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

home-assistant / home-assistant / 27624
94%

Build:
DEFAULT BRANCH: dev
Ran 04 Aug 2017 01:49PM UTC
Jobs 5
Files 276
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
27624

push

travis-ci

pvizeli
Xiaomi vacuum as platform of new `vacuum` component derived from ToggleEntity, and services (#8623)

* Xiaomi vacuum as component with switch, sensors and services

- Conversion from switch platform to async component.
- Add services proposed in #8416 to the new component, with shorter names.
- Add sensors for the vacuum robot as a selectable list from `battery`, `state`, `error`, `fanspeed`, `clean_time` and `clean_area` (the state attributes of the switch). The sensors don't poll, but listen to a signal to update the state, the switch fires this signal when updating.
- Assign default icons to sensors and the switch (`mdi:google-circles-group` looks like the robot!)

* path change in requirements_all (from switch platform to component)

* copy pasting is a bad habit

* services to the components services.yaml, modify .coveragerc

* review: use with multiple hosts, fix calls to async_add_devices, fix ranges for services

* `icon_for_battery_level` util method

* Xiaomi vacuum as platform of new component vacuum

- Created new component `vacuum` from a ToggleEntity.
- Add services `turn_on`, `turn_off`, `cleaning_play_pause`, `stop`, `return_to_base`, `locate`, `set_fanspeed` and `send_command`.
- Remove the main switch for the xiaomi vacuum (the toggable main entity is the switch).
- Add `support flags` for the common services
- Assign default icons to sensors and the switch (`mdi:google-circles-group` looks like the robot!)
- Move services descriptions to a yaml file for the new component.
- Update requirements_all.
- Update coveragerc.

* fix coveragerc

* fix battery icon helper to use more icons

* remove sensors, create properties and support flags for custom UI

* cleaning

* updated state_attrs for filtering in UI, renamed platform to simply `xiaomi`

* fix platform rename

* change fanspeed and expose `fanspeed_list` to use speed steps

* minor fixes

- Rename service `start_pause`
- Add 'Error' att... (continued)

294 of 294 new or added lines in 4 files covered. (100.0%)

23850 of 25436 relevant lines covered (93.76%)

2.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
100.0
homeassistant/components/vacuum/__init__.py
8
100.0
homeassistant/components/vacuum/demo.py
Jobs
ID Job ID Ran Files Coverage
1 27624.1 (TOXENV=lint) 04 Aug 2017 01:51PM UTC 0
Travis Job 27624.1
2 27624.2 (TOXENV=py34) 04 Aug 2017 01:50PM UTC 0
93.75
Travis Job 27624.2
3 27624.3 (TOXENV=py35) 04 Aug 2017 01:55PM UTC 0
93.74
Travis Job 27624.3
4 27624.4 (TOXENV=py36) 04 Aug 2017 01:56PM UTC 0
93.74
Travis Job 27624.4
5 27624.5 (TOXENV=requirements) 04 Aug 2017 01:49PM UTC 0
Travis Job 27624.5
Source Files on build 27624
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #27624
  • 96f8c37d on github
  • Prev Build on dev (#27614)
  • Next Build on dev (#27625)
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