Commit Graph

8804 Commits

Author SHA1 Message Date
Allen Porter
fa4e890696 Revamp nest authentication config flows and remove need for redirect urls (#59033)
* Add support for Installed Auth authentication flows.

Add support for additional credential types to make configuration simpler for
end users. The existing Web App auth flow requires users to configure
redirect urls with Google that has a very high security bar: requires ssl,
and a publicly resolvable dns name.

The new Installed App flow requires the user to copy/paste an access code
and is the same flow used by the `google` calendar integration. This also
allows us to let users create one authentication credential to use with
multiple google integrations.

* Remove hard migration for nest config entries, using soft migration

* Add comment explaining soft migration

* Revet changes to common.py made obsolete by removing migration

* Reduce unnecessary diffs in nest common.py

* Update config entries using library method

* Run `python3 -m script.translations develop`

* Revert nest auth domain

* Remove compat function which is no longer needed

* Remove stale nest comment

* Adjust typing for python3.8

* Address PR feedback for nest auth revamp
2021-11-04 15:56:16 -07:00
Marvin Wichmann
54e7ef08e3 Add test for KNX weather entity (#58898) 2021-11-04 22:52:39 +01:00
Marvin Wichmann
56b7f94bbc Add tests for KNX scene (#58900) 2021-11-04 22:51:42 +01:00
Matthias Alphart
4d4d778598 Add tests for KNX light (#58912)
* test lights: simple, brightness, color_temp

* hs, xyy, rgb individual

* test rgb, rgbw
2021-11-04 22:43:38 +01:00
Nathan Spencer
ea4009fd81 Use entity_category in litterrobot (#59074) 2021-11-04 22:34:54 +01:00
Franck Nijhof
d126d88977 Add Button entity component platform (#57642)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 16:50:43 +01:00
Erik Montnemery
4c5aca93df Add recorder status WS API (#58989)
* Add recorder status WS API

* Rename recorder/status to recorder/info

* Silence pylint

* Improve tests

* Address review comments

* Tweak

* Try to fix tests

* Try to debug flaky tests

* Try to fix tests

* Revert changes to async_migration_in_progress

* Try to fix tests

* Remove debug prints

* Apply suggestions from code review
2021-11-04 16:46:45 +01:00
Erik Montnemery
be4e9f91b6 Change minimum supported SQLite version to 3.31.0 (#59073) 2021-11-04 16:34:35 +01:00
Guido Schmitz
620db191b1 Use entity category and state class in devolo Home Network (#59071)
* Use entity category and state class

* Add tests
2021-11-04 16:17:20 +01:00
J. Nick Koston
10d6247fee Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
Teemu R
ea657e6656 Accept all roborock vacuum models for xiaomi_miio (#59018) 2021-11-04 14:14:31 +01:00
Dave T
6419950283 Aurora abb improvements (#58504)
* Add type hints.

* Refactor AuroraDevice to AuroraDeviceEntity

* Refactor AuroraDevice to AuroraDeviceEntity

* Connection class is defined in manifest.

* Separate words with underscore in variable names

* Remove duplicated code.

* Remove unused "unknown" string

* Test import yaml when integration already setup

* Remove test already done in config_flow test

* Convert variable names to snake case

* Shorten AuroraDeviceEntity to AuroraEntity

* Add typing

* Remove unnecessary integration setup in test.

* Refactor "already_setup" to "already_configured"

* Use common string

* Reduce the amount of code in the try block.

* Fix merge

* Allow yaml setup to be deferred if no comms

* Properly setup all sensors for defered yaml setup.

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add type hints.

* Refactor AuroraDevice to AuroraDeviceEntity

* Refactor AuroraDevice to AuroraDeviceEntity

* Connection class is defined in manifest.

* Separate words with underscore in variable names

* Remove duplicated code.

* Remove unused "unknown" string

* Test import yaml when integration already setup

* Remove test already done in config_flow test

* Convert variable names to snake case

* Shorten AuroraDeviceEntity to AuroraEntity

* Add typing

* Remove unnecessary integration setup in test.

* Refactor "already_setup" to "already_configured"

* Use common string

* Reduce the amount of code in the try block.

* Allow yaml setup to be deferred if no comms

* Properly setup all sensors for defered yaml setup.

* Code review: move line out of try block.

* Improve test coverage

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 04:38:47 +01:00
Dermot Duffy
8fda2e0a1d Address late review of motionEye media browser (#58925)
* Media-content type fixes post-codereview.

* More f-string.

* Use the 'video' media class not 'movie'.
2021-11-03 06:37:52 +01:00
Dave T
51be7d53d6 Aurora abb defer unique_id assignment during yaml import (#58887)
* Defer unique_id assignment during yaml import if dark

* Back out variable name change to simplify.

* Allow config flow yaml setup deferral.

* Fix deferred yaml import

* Code review: only wrap necessary lines in try blk

* Code review: catch possible duplicate unique_id

* Simplify assignment.

* Code review: use timedelta to retry yaml import

* Code review: if a different error occurs, raise it

* Remove current config entry if duplicate unique_id

* Code review: remove unnecessary line.

* Code review: revert change, leave to other PR.

* Code review: remove unnecessary patch & min->sec

* Remove unnecessary else after raise.

* Increase test coverage.

* Check the number of config entries at each stage

* Raise ConfigEntryNotReady when connection fails.

* Log & return false for error on yaml import
2021-11-03 01:30:29 +01:00
epenet
2b22d635d9 Use zeroconf HaServiceInfo in tests (A-D) (#58836)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-02 12:27:31 -05:00
Jan Bouwhuis
0c4863198e Add command_template to MQTT number platform (#58949) 2021-11-02 18:21:49 +01:00
Chris Browet
2df1ba2346 Add device_class to MQTT switch (#58931) 2021-11-02 17:40:05 +01:00
Jan Bouwhuis
339117aceb Add command_template to mqtt select platform (#58934) 2021-11-02 17:33:23 +01:00
Erik Montnemery
8d910c5079 Revert "Add offset support to time trigger" (#58947) 2021-11-02 16:56:38 +01:00
Dermot Duffy
4746ff3798 Address late review of motionEye services (#58924) 2021-11-02 13:33:08 +01:00
hesselonline
bfb0d8dd19 Split wallbox sensor type and number type (#58807) 2021-11-02 11:11:46 +01:00
Paulus Schoutsen
31153ac155 Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00
Paulus Schoutsen
f51e1fcb67 Check for uncaught service not found exceptions (#58010) 2021-11-01 14:33:09 +01:00
Franck Nijhof
f3d5768fb4 Move WLED sensors to entity descriptions (#58839)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-11-01 08:54:05 +01:00
uvjustin
9aaa92f366 Improve part metadata in stream (#58822) 2021-10-31 20:23:01 -07:00
Paulus Schoutsen
a122cbab61 Mobile app to update entity registry on re-register sensors (#58378)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-10-31 20:21:46 -07:00
Franck Nijhof
9daf2ee65d Fix Plugwise not updating config entry with discovery information (#58819) 2021-10-31 12:19:51 -07:00
Michael
ccad6a8f07 Add configuration url to AVM Fritz!Smarthome (#57711)
* add configuration url

* extend data update coordinator

* improve exception handling during data update

* store coordinator after first refresh

* fix light init
2021-10-31 12:12:25 -07:00
Dermot Duffy
ab7d8db481 Add motionEye media browser (#53436) 2021-10-31 10:59:31 -05:00
Michael Chisholm
ce27fb87c6 dlna_dmr: less eager discovery (#58780) 2021-10-31 16:11:20 +01:00
J. Nick Koston
faecc90b38 Workaround brightness transition delay from off in older yeelight models (#58774) 2021-10-31 16:11:07 +01:00
J. Nick Koston
89ae88519d Add additional test coverage for RYSE smartbridges with HK (#58746) 2021-10-31 09:19:37 -05:00
Aaron Bach
f7dea3aa1d Add Ridwell integration (#57590) 2021-10-30 08:27:48 -06:00
Nathan Spencer
aacc009cbb Get Litter-Robot to 100% code coverage and minor code cleanup (#58704) 2021-10-30 09:13:03 -05:00
Dermot Duffy
bbbbcfbb93 Add motionEye services (#53411) 2021-10-30 08:48:01 -05:00
J. Nick Koston
061b1abd1b Improve handling of invalid serial numbers in HomeKit Controller (#58723)
Fixes #58719
2021-10-29 17:57:01 -07:00
Marc Mueller
e97133613a Fix round - wallbox (#58689)
* Fix wallbox round

* Add test case
2021-10-29 17:52:23 -07:00
Chris Browet
b1b782419b Add REST sensor/binary_sensor/switch templated headers & params (#54426) 2021-10-29 16:36:47 -05:00
Dermot Duffy
944a7c09c4 Add motionEye sensor platform (#53415) 2021-10-29 16:14:26 -05:00
Dermot Duffy
a2102deb64 Support reverse proxying of motionEye streams (#53440) 2021-10-29 15:24:30 -05:00
jjlawren
6e7fe13d51 Disable polling Sonos switches by default (#58705) 2021-10-29 14:43:59 -05:00
Erik Montnemery
f3bd13d179 Fix regression in MQTT discovery (#58684)
* Fix regression in MQTT discovery

* Update test
2021-10-29 15:59:16 +02:00
Erik Montnemery
72d7817dbf Update light turn_on schema to coerce colors to tuple before asserting sequence type (#58670)
* Make color_name_to_rgb return a tuple

* Tweak

* Tweak

* Update test

* Tweak test
2021-10-29 15:51:14 +02:00
Erik Montnemery
39867c9b83 Convert RGBW and RGBWW colors in light turn_on calls (#58680) 2021-10-29 15:48:11 +02:00
Nathan Spencer
659a0d9a95 Add select platform to Litter-Robot integration (#58323) 2021-10-29 07:47:15 -05:00
Franck Nijhof
b3e7eeb020 Fix spelling of OctoPrint (#58686) 2021-10-29 13:21:57 +02:00
Martin Hjelmare
3a76d92e0f Add zwave_js binary sensor descriptions (#58641) 2021-10-28 21:28:02 -07:00
Allen Porter
9c5a79c641 Add an image placeholder for Nest WebRTC cameras (#58250) 2021-10-28 21:07:29 -07:00
Eddy G
4d5705c0fe Add 'delta_values' option to utility_meter (#54964) 2021-10-28 19:00:31 -05:00
Dave T
37930aeeb6 Aurora abb energy metering (#58454)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-10-28 16:47:49 -05:00