Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere ( #50034 )
2021-05-03 09:34:28 -07:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() ( #47760 )
2021-03-11 20:16:26 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
starkillerOG
338c07a56b
Add Xiaomi Miio vacuum config flow ( #46669 )
2021-02-22 13:01:02 +01:00
JJdeVries
1ae3bb6af5
Add xiamoi_miio the water_box / mop status ( #43355 )
...
* Adding the water_box / mop status
* Clean up
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Teemu R. <tpr@iki.fi>
2020-12-20 05:13:52 +01:00
Teemu R
bdb71c9159
Only log xiaomi_miio update exceptions once ( #41226 )
...
* xiaomi_miio: only log update exceptions once
Replaces #37695
* add som more missed exception logger cases + do not change the control flow as pointed out by @cgtobi
* Use patch&MagickMock from tests.async_mock
* Fix linting for alarm_control_panel
* update the test to verify that the warning on update is only logged when the device was previously available
2020-10-25 01:53:36 +02:00
Teemu R
46b2c776db
Fetch timers separately for xiaomi vacuums ( #41330 )
2020-10-06 15:26:59 +02:00
Teemu R
94c474eab2
Add missing status mappings for xiaomi_miio ( #39357 )
2020-08-28 15:09:46 -05:00
Jonas Thuresson
247df5874b
Xiaomii miio vaccum clean segment service ( #36801 )
2020-06-22 16:37:05 -07:00
MarBra
44708ed8bb
Add timers to xiaomi_miio vacuum ( #35417 )
...
* Add timers to xiaomi_miio vacuum
* Add timezone
* Add cron and next_schedule
* Use next_schedule from backend library
* Use as_utc from utils
2020-06-12 06:39:19 +02:00
Jonas Thuresson
f522c6c8c7
Add Xiaomi miio vaccum goto service ( #35737 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-06-08 14:57:47 +02:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Erik Montnemery
d3ed80cf53
Rename VacuumDevice to VacuumEntity ( #34674 )
2020-04-26 02:11:08 +02:00
Teemu R
e64104300f
Use backend-provided fan speed presets for Xiaomi vacuums, bum… ( #32850 )
...
* Use backend-provided fan speed presets for Xiaomi vacuums
This needs input from Xiaomi vacuum owners to verify that it does not break anything.
I have personally tested this on rockrobo v1 (old mapping).
Related issues/PRs:
home-assistant/core#32821
home-assistant/core#31268
home-assistant/core#27268
This is a WIP as it requires a new upstream release.
The PR is https://github.com/rytilahti/python-miio/pull/643
* Bump version requirement for 0.5.0
* Bump requirements_test_all.txt, too
* Fix linting; missing setup.cfg on local checkout caused wrong settings for black..
* Add tests for both fan speed types
* Remove useless else..
* bump python-miio to 0.5.0.1 due to broken 0.5.0 packaging
2020-04-02 16:55:44 -07:00
tiagofreire-pt
7052cdded1
Change nomenclature for Roborock fan speeds ( #30614 )
...
* Change nomenclature for Roborock fan speeds
* Update test_vacuum.py
* Update test_vacuum.py
2020-01-09 23:49:13 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
c7b2c09a61
Sort imports according to PEP8 for xiaomi_miio ( #29677 )
2019-12-09 11:42:18 +01:00
Raman Gupta
040fd9c258
Update service domains for xiaomi_miio from base domains to xiaomi_miio domain ( #29134 )
...
* move service constants to const.py, move all custom xiaomi_miio services to xiaomi_miio domain
* update service names
* try to fix black error
* try black formatting again
* final black formatting attempt
* update service names to reflect platform
* fix typo
2019-12-02 11:49:39 -08:00
Abílio Costa
a08df53dbc
Add "gentle" mode for Xiaomi Roborock vacuum ( #29004 )
...
* Add "gentle" mode for Xiaomi Roborock vacuum
* fix tests
2019-11-27 13:46:13 +01:00
Tomasz
f8d3ea20b6
Move imports in xiaomi_miio ( #27773 )
...
* move imports in xiaomi_miio
* reorder imports with isort
* fix pylint error
* Rename imports
2019-11-08 18:32:44 +01:00
Sebastian Muszynski
5b96704c4a
Use dict[key] for required config keys ( #28304 )
...
* Use dict[key] for required config keys
* Change CONF_NAME too because it has a default
2019-10-29 01:45:22 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Ben Lebherz
2c144bc412
add cleaning state code for roborock s6 ( #25500 )
2019-07-30 13:34:05 -04:00
Aaron Bach
9e36448f03
Add area support to vacuum service schemas ( #25443 )
...
* Add area support to vacuum service schemas
* Fixed tests
* De-couple platform schemas
2019-07-24 08:29:08 +02:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Anna Prosvetova
ab2ac60d12
Fix xiaomi vacuum resume functionality ( #22626 )
2019-04-01 10:44:46 -07:00
Sebastian Muszynski
f4102339c1
Bump python-miio version ( #22202 )
...
* Bump python-miio version
* Rename speed property to motor_speed
* Enable set_led service of the Air Humidifier
* Allow a favorite level in [0...17]
* Allow a scene in [0...6]
2019-03-21 08:56:36 +01:00
Marco Gazzola
5115dfada2
Add zone and reps for Xiaomi vacuum ( #19777 )
...
* xiaomi vacuum with zone and reps
* tail whitespace
* tail whitespaces
* new version
* fix params typs
* fix param type
* line length
* rytilahti tips
* houndci-bot
* fix trevis
* rytilahti tips
* service description
* syssi fix
* MartinHjelmare tips
* MartinHjelmare
* data_template schema
* line lenght
* line lenght
* line lenght
* data_template schema
* fix
* Update homeassistant/components/vacuum/xiaomi_miio.py
Co-Authored-By: marcogazzola <dev@marcogazzola.com>
* Update homeassistant/components/vacuum/xiaomi_miio.py
Co-Authored-By: marcogazzola <dev@marcogazzola.com>
* xiaomi vacuum with zone and reps
* tail whitespace
* new version
* fix param type
* rytilahti tips
* rytilahti tips
* MartinHjelmare
* data_template schema
* line lenght
* line lenght
* data_template schema
* fix
* Merge branch 'dev' of https://github.com/marcogazzola/home-assistant into dev
* Revert "Merge branch 'dev' of https://github.com/marcogazzola/home-assistant into dev"
This reverts commit e1f370b3b45d2541c8117146b0940d7c2b5bc8b0.
* log fixed
* Revert "log fixed"
This reverts commit 1f0e7b35e8
.
* Revert "Revert "Merge branch 'dev' of https://github.com/marcogazzola/home-assistant into dev""
This reverts commit 1cf9e5ae1f
.
* Revert "Merge branch 'dev' of https://github.com/marcogazzola/home-assistant into dev"
This reverts commit 0e8d53449a
.
* log fixed
2019-02-20 15:44:04 +01:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Pawel
208f1a4a47
Allow pausing xiaomi vacuum in all states ( #20620 )
...
* fix state update when no cleaning is yet performed
allow pause vacuum when returning to base
* revert checking of atttribute updates. Will be fixed in upstream lib.
* remove unnecesarry if on pause_commadn
2019-02-06 13:04:01 +01:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ( #20677 )
...
* Consolidate all components with platforms
* Organize tests
* Fix more tests
* Fix Verisure tests
* one final test fix
* Add change
* Fix coverage
2019-02-02 07:13:16 -08:00