Aaron Bach
fd49da37b8
Make sure OpenUV data storage conforms to standards ( #57813 )
2021-10-16 23:59:19 -06:00
Aaron Bach
25253f2b7a
Use current config entry standards for OpenUV ( #57137 )
2021-10-05 15:03:39 -06:00
Aaron Bach
80c97a2416
Remove injected logger in Ambient PWS and OpenUV ( #56920 )
...
* Remove injected log in OpenUV
* Add Ambient
2021-10-02 10:45:33 -06:00
Aaron Bach
46f05ca279
Bump pyopenuv to 2.2.0 ( #55464 )
2021-08-30 13:12:27 -07:00
Aaron Bach
2271f3b5f9
Clean up usage of EntityDescription in OpenUV ( #55127 )
...
* Clean up usage of EntityDescription in OpenUV
* Remove redundant typing
* Code review
* Update homeassistant/components/openuv/__init__.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Black
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-08-25 14:18:53 +02:00
Aaron Bach
24d017f974
Add ability to configure OpenUV "protection window" UV indices ( #54562 )
2021-08-24 15:37:50 -05:00
Aaron Bach
10551743d6
Bump pyopenuv to 2.1.0 ( #54436 )
2021-08-10 20:28:03 -07:00
Franck Nijhof
d4c4263730
Adjust typing of _attr_extra_state_attributes ( #53529 )
2021-07-27 01:25:22 +02:00
Aaron Bach
54ace4cdd4
Enforce strict typing for OpenUV ( #53409 )
...
* Enforce strict typing for OpenUV
* Linting
* Fix tests
2021-07-24 14:50:01 +02:00
Marc Mueller
f6b162bc39
Add pylint CodeStyle extension ( #53147 )
2021-07-19 06:57:06 -07:00
Aaron Bach
887753e06d
Remove redundant property definitions in OpenUV ( #52379 )
...
* Remove redundant property definitions in OpenUV
* Update homeassistant/components/openuv/__init__.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-02 09:47:49 +02:00
J. Nick Koston
3f3f77c6e6
Reduce config entry setup/unload boilerplate N-P ( #49777 )
2021-04-27 20:42:21 +02:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() ( #47758 )
2021-03-11 20:11:25 +01:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
Aaron Bach
be39104a36
Re-organize OpenUV constants ( #43453 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-22 12:50:22 +01:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* 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
7071f3a966
Remove deprecated YAML config from OpenUV ( #38857 )
2020-08-16 19:57:10 -06:00
Aaron Bach
c18ba6aec0
Remove configuration.yaml support for OpenUV ( #36148 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-05-27 15:48:28 -07:00
springstan
eae21be5b9
Improve string formatting v6 ( #33698 )
2020-04-07 23:14:28 +02:00
Aaron Bach
f53dfc4308
Don't reinvent callback handler removal logic in several integ… ( #33726 )
2020-04-05 22:36:23 -07:00
Franck Nijhof
e8a0abd107
String formatting improvements ( #33635 )
...
* String formatting improvements
* Found another one
2020-04-04 18:21:14 +02:00
Aaron Bach
609263e1bb
Add cleanup to OpenUV ( #32886 )
...
* Add cleanup to OpenUV
* Linting
2020-03-17 22:03:16 -05:00
Aaron Bach
288574b8d1
Remove monitored conditions from OpenUV ( #31019 )
...
* Remove monitored conditions from OpenUV
* Code review comments
2020-01-22 17:48:20 -08:00
Aaron Bach
662c12715e
Allow OpenUV entities to be unavailable ( #31018 )
...
* Allow OpenUV entities to be unavailable
* Empty commit to re-trigger build
2020-01-20 13:33:58 -07:00
springstan
23fb364076
Move imports to top for openuv ( #29541 )
...
* Move imports to top for openuv
* Renamed mock_pyopenuv_ to MockClient in test_config_flow
2019-12-06 14:13:43 -07:00
Aaron Bach
fae8cd48c4
Add small speed improvement when unloading OpenUV ( #28758 )
2019-11-13 14:27:15 -07:00
Franck Nijhof
1c5e0123c9
Use literal string interpolation in integrations N-Q (f-strings) ( #26391 )
2019-09-03 11:35:00 -07:00
StephenWetzel
16fff16082
Add two new methods to the OpenUV component that consume only a singl… ( #26207 )
...
* Add two new methods to the OpenUV component that consume only a single API call
* Two lines after class
* Rename methods to better reflect what they do, and DRY copy and pasted code
* More error handling down into methods, run api calls in parallel
* Fix import order
* Add new methods to services.yaml, and update error messages
2019-08-29 09:56:12 -06:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Aaron Bach
75abfd49ef
Fixed unhandled exception in OpenUV data update ( #23611 )
2019-05-01 21:15:10 -06:00
Aaron Bach
56b08a6ddb
Ensure OpenUV service checks permissions ( #22668 )
...
* Create decorator to check service permissions
* Ensure OpenUV service has proper user permissions
* Reverting strange changes
2019-04-13 16:50:19 -06: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
Aaron Bach
4ca7273c58
Upgrade pyopenuv to 1.0.9 ( #21513 )
2019-02-27 17:51:09 -07:00
Fabian Affolter
161c368c9d
Update file header ( #21054 )
...
* Update file header
* Update __init__.py
2019-02-13 20:35:12 -08:00
Aaron Bach
ef79566864
Adjust OpenUV integration for upcoming API limit changes ( #19949 )
...
* Adjust OpenUV integration for upcoming API limit changes
* Added fix for "Invalid API Key"
* Bugfix
* Add initial nighttime check
* Move from polling to a service-based model
* Fixed test
* Removed unnecessary scan interval
* Fixed test
* Moving test imports
* Member comments
* Hound
* Removed unused import
2019-01-14 13:12:06 +01:00
Aaron Bach
a22aad50e1
Fixes an issue with OpenUV config import failing ( #17831 )
...
* Fixes an issue with OpenUV config import failing
* Update
* Update __init__.py
* Update config_flow.py
2018-10-27 11:07:08 -06:00
kennedyshead
0723c7f5dc
Just use debug instead of error if the binary_sensor does not get data ( #17720 )
2018-10-23 13:03:01 +02:00
Aaron Bach
29c2b2fe79
Clean up OpenUV config flow ( #17349 )
...
* Cleaned up OpenUV config flow
* Added proper listener removal
* Added proper exception
* Unnecessary exception message
* Moved API key error to correct place
* Member-requested changes (part 1)
* Hound
* Member-requested changes (part 2)
* Cleanup
* Fixed tests
2018-10-15 13:21:21 -06:00
Aaron Bach
71e3047f5c
OpenUV: Fixed issue with missing protection window data ( #17051 )
2018-10-02 10:34:12 +02:00
Aaron Bach
188f5de5ae
Fixes an OpenUV bug with the scan interval ( #16570 )
2018-09-11 17:13:16 -06:00
Aaron Bach
f96aee2832
Add config flow for OpenUV ( #16159 )
...
* OpenUV config flow in place
* Test folder in place
* Owner-requested comments
* Tests
* More tests
* Owner-requested changes (part 1 of 2)
* Updated requirements
* Owner-requested changes (2 of 2)
* Removed unnecessary import
* Bumping Travis
* Updated requirements
* More requirements
* Updated tests
* Owner-requested changes
* Hound
* Updated docstring
2018-09-04 09:22:44 +02:00