Commit Graph

52 Commits (ba31d7d1b493aaec4cce27f0cb243ab52e094ce6)

Author SHA1 Message Date
J. Nick Koston 6e911ba19f
Shutdown bond bpup and skip polling after the stop event () 2021-04-18 13:46:46 -07:00
Franck Nijhof bb9da22a84
Clean up superfluous integration setup - part 3 () 2021-03-29 13:23:44 -10:00
Franck Nijhof ad13a9295e
Merge multiple context managers in tests () 2021-03-27 09:17:15 +01:00
Marc Mueller 54d1e9985f
Update typing 15 () 2021-03-18 15:13:22 +01:00
Erik Montnemery 78b21b1ad1
Update tests a-b to use async_get() instead of async_get_registry() () 2021-03-09 14:24:34 +01:00
J. Nick Koston 573c40cb11
Ensure bond devices recover when wifi disconnects and reconnects () 2021-03-08 10:44:28 -08:00
Ville Skyttä dc880118a4
Lint suppression cleanups ()
* 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
J. Nick Koston d68a51ddce
Avoid having to ask for the bond token when possible during config () 2021-02-23 13:42:56 -08:00
J. Nick Koston adf480025d
Add support for bond up and down lights () 2021-02-20 08:03:40 -10:00
J. Nick Koston 5b0b01d727
Implement suggested areas in bond ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-19 21:06:43 -10:00
J. Nick Koston 6a62ebb6a4
Add BPUP (push updates) support to bond () 2021-02-09 09:43:38 +01:00
J. Nick Koston 6563c37ab1
Add support for generic lights to bond () 2021-02-09 00:39:21 +01:00
J. Nick Koston 93fafedf72
Cleanup bond identifiers and device info () 2021-02-09 00:37:32 +01:00
J. Nick Koston 85e463d507
Update bond to use new fan entity model () 2021-01-28 10:23:12 +01:00
Ville Skyttä 2fb3be50ab
Make DeviceRegistry.async_get_device connections arg optional ()
* Make async_get_device connections Optional, default None

* Remove unnecessary async_get_device connections arg usages

Some of these were using an incorrect collection type, which didn't
cause issues mostly just due to luck.
2021-01-07 13:49:45 +01:00
Franck Nijhof 65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen 1c36bf5e19
Fix block till done in create entry config flow tests () 2020-10-24 16:20:56 +02:00
Paulus Schoutsen 5dac3883b0
Stub light profiles () 2020-10-23 16:28:21 +02:00
Eugene Prystupa 6366872119
Add support for Bond fireplaces with integrated lights () 2020-10-18 14:11:24 -05:00
Philip Allgaier dde6305549
Cleanup unused loggers (components N-Z + tests) () 2020-10-16 21:24:08 -05:00
Eugene Prystupa b71cbd2033
Fix a problem with set_speed(off) when direct HA API for set speed is called () 2020-08-30 21:10:15 -05:00
Eugene Prystupa 867d5088e3
Fix bond fan.turn_on with OFF speed () 2020-08-29 17:03:19 -05:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Eugene Prystupa 50cd6be18d
Raise error when unsupported (old) Bond firmware is detected () 2020-08-07 21:22:13 -05:00
Eugene Prystupa 542c6cce25
Ensure bond unique ids are unique across hubs () 2020-08-02 16:50:03 -10:00
Eugene Prystupa 11994d207a
Add zeroconf discovery for bond integration ()
* Add zeroconf discovery for bond integration

* Add zeroconf discovery for bond integration (fix typo)

* Add zeroconf discovery for bond integration (PR feedback)

* Add zeroconf discovery for bond integration (PR feedback)

* Add zeroconf discovery for bond integration (PR feedback)
2020-08-01 11:18:40 -05:00
Eugene Prystupa 89cbcdb9dc
Abort bond hub config flow if hub is already registered ()
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-07-31 14:08:25 +02:00
Eugene Prystupa 0493f1c206
Generate bond config entry ID from the hub metadata ()
* Generate bond config entry ID from the hub metadata

* Generate bond config entry ID from the hub metadata (PR feedback)
2020-07-30 18:00:58 -05:00
Eugene Prystupa a00aa6740e
Fix bond fans without defined max_speed () 2020-07-30 14:44:26 +02:00
Marcio Granzotto Rodrigues 8ab1b41974
Add support for dimmable bond lights ()
* Add support for dimmable lights

* Fix formatting

* Add supported features test on Bond Light

* Add more tests to bond light and fixes comments

* Fix rebase conflict resolution

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-07-29 20:01:59 -05:00
Eugene Prystupa 020dd39c08
Apply changes from bond code review () 2020-07-27 21:18:24 -05:00
Marcio Granzotto Rodrigues 02e2c40c48
Bond - Make assumed state conditional () 2020-07-27 20:39:23 -05:00
Eugene Prystupa 4d73f107c4
Implement resilient startup for bond integration with ConfigEntryNotReady support () 2020-07-26 18:27:18 -05:00
Eugene Prystupa 2d6eb5c05d
Refactor bond unit tests to reduce boilerplate ()
* Refactor bond unit tests to reduce boilerplate

* Refactor bond unit tests to reduce boilerplate (PR feedback)

* Refactor bond unit tests to reduce boilerplate (PR feedback, nullcontext)
2020-07-26 12:15:21 -05:00
Eugene Prystupa 69203b5373
Gracefully handle bond API errors and timeouts through available state ()
* Gracefully handle API errors and timeouts through available state

* Gracefully handle API errors and timeouts through available state
2020-07-24 15:14:47 -05:00
Eugene Prystupa 3480fb6996
Refactor bond integration to be completely async () 2020-07-22 20:22:25 -05:00
Eugene Prystupa 37a70c73a5
Improve bond startup performance () 2020-07-16 10:31:15 -05:00
Eugene Prystupa 0bfcd8c2ab
Refactor bond tests () 2020-07-15 15:49:58 -05:00
Eugene Prystupa b07d09f7dc
Add support for fireplaces to bond integration () 2020-07-14 22:27:03 -05:00
Eugene Prystupa 515ad6164d
Add support for generic device (switch) to bond integration () 2020-07-14 08:54:33 -05:00
Eugene Prystupa 95e72b4c4b
Map bond fan speeds to standard HA speeds () 2020-07-13 18:00:05 -05:00
Eugene Prystupa ed3f25489e
Apply bond python related feedback from a prior PR () 2020-07-13 23:07:35 +02:00
Eugene Prystupa f32f73a7d1
Add basic support for lights in bond integration () 2020-07-12 18:45:47 -05:00
Eugene Prystupa e9440c49d5
Add support for fan direction in bond integration ()
* Add support for fan direction in bond integration

* Add support for fan direction (PR feedback)
2020-07-12 15:30:24 -05:00
Eugene Prystupa c6ab2c5d0a
Add Bond hub as a device for bond entities ()
* Introduce Bond Hub concept

* Read Hub version information when setting up entry

* Link entities to Hub using via_device

* Add test to verify created Hub device properties
2020-07-12 11:31:53 -05:00
Eugene Prystupa b7318b1914
Upgrade bond-home to 0.0.9 () 2020-07-11 20:04:07 -05:00
Eugene Prystupa 1e9bc278e0
Refactor Bond integration to remove duplication ()
* Refactor Bond integration to remove duplication in Entity code and unit tests

* Refactor Bond integration to remove duplication in Entity code and unit tests (PR feedback)
2020-07-10 20:20:50 -05:00
Eugene Prystupa 366354c90c
Support Fan domain in Bond integration ()
* Support Fan domain in Bond integration

* Support Fan domain in Bond integration

* Support Fan domain in Bond integration (apply PR feedback)

* Support Fan domain in Bond integration (apply PR feedback)
2020-07-10 19:23:35 -05:00
Eugene Prystupa 69a8ba2af8
Add bond cover assumed state and local polling ()
* Declare Bond covers as having assumed state, setup local polling for state updates

* Declare Bond covers as having assumed state, setup local polling for state updates (apply feedback from PR review)

* Declare Bond covers as having assumed state, setup local polling for state updates (apply feedback from PR review)

* Declare Bond covers as having assumed state, setup local polling for state updates (apply feedback from PR review)
2020-07-09 18:25:18 -05:00
Chris Talkington fb420d5952
Apply more suggestions from bond code review ()
* apply more suggestions from bond code review

* Update cover.py

* Update test_cover.py

* Update test_cover.py

* Update test_cover.py

* Update cover.py

* Update utils.py

* Update test_cover.py

* Update test_utils.py

* Delete test_utils.py

* Update cover.py

* Update test_cover.py

* Update test_cover.py
2020-07-08 16:28:53 -05:00