Commit graph

18 commits

Author SHA1 Message Date
Aaron Bach
49b4f9d2c6
Streamline Notion CoordinatorEntity () 2020-11-10 09:24:27 +01:00
Aaron Bach
244bfb2096
Deprecate YAML config for Notion (0.119 removal) () 2020-11-09 23:47:38 -06:00
J. Nick Koston
692ed8c639
Update notion to use CoordinatorEntity () 2020-08-30 13:02:56 -05:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ()
* Remove unnecessary exception re-wraps

* Preserve exception chains on re-raise

We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.

The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.

Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.

* Fix mistaken re-wrap in homematicip_cloud/hap.py

Missed the difference between HmipConnectionError and
HmipcConnectionError.

* Do not hide original error on plex new cert validation error

Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Aaron Bach
31e0ddaec5
Update Notion to use a DataUpdateCoordinator ()
* Update Notion to use a DataUpdateCoordinator

* isort

* Bug
2020-08-21 08:10:12 -06:00
Aaron Bach
eb826e5956
Fix incorrect device registry call in Notion () 2020-05-06 18:42:32 -07:00
Aaron Bach
87d58a544b
Broader Notion exception handling () 2020-05-05 13:56:32 -06:00
springstan
78d87dc40f
Use TEMP_CELSIUS constant () 2020-04-10 19:17:46 +02:00
springstan
eae21be5b9
Improve string formatting v6 () 2020-04-07 23:14:28 +02:00
Aaron Bach
f53dfc4308
Don't reinvent callback handler removal logic in several integ… () 2020-04-05 22:36:23 -07:00
Franck Nijhof
e8a0abd107
String formatting improvements ()
* String formatting improvements

* Found another one
2020-04-04 18:21:14 +02:00
Aaron Bach
1da35e2939
Add cleanup to Notion ()
* Add cleanup to Notion

* Base update method
2020-03-17 07:01:40 -04:00
Aaron Bach
c97b1c60b0
Modernize Notion config flow ()
* Modernize Notion config flow

* Linting
2020-02-24 21:36:58 -08:00
Aaron Bach
31131e4ac6
Add small speed improvement when unloading Notion () 2019-11-13 14:26:52 -07:00
Aaron Bach
3839eb0197 Fix issue with incorrect Notion bridge IDs ()
* Fix issue with incorrect Notion bridge IDs

* Less aggressive

* Member comments
2019-08-05 00:11:28 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Aaron Bach
51a40c0441 Change unique_id formula for Notion entities ()
* Change unique_id formula for Notion entities

* Don't use name
2019-07-11 07:31:03 +02:00
Aaron Bach
c2e843cbc3 Add support for Notion Home Monitoring ()
* Add support for Notion Home Monitoring

* Updated coverage

* Removed auto-generated translations

* Stale docstrings

* Corrected hardware version

* Fixed binary sensor representation

* Cleanup and update protection

* Updated log message

* Cleaned up is_on

* Updated docstring

* Modified which data is updated during async_update

* Added more checks during update

* More cleanup

* Fixed unhandled exception

* Owner-requested changes (round 1)

* Fixed incorrect scan interval retrieval

* Ugh

* Removed unnecessary import

* Simplified everything via dict lookups

* Ensure bridges are properly registered

* Fixed tests

* Added catch for invalid credentials

* Ensure bridge ID is updated as necessary

* Updated method name

* Simplified bridge update

* Add support for updating bridge via_device_id

* Device update guard clause

* Removed excess whitespace

* Whitespace

* Owner comments

* Member comments
2019-07-09 10:29:06 +02:00