Commit Graph
9818 Commits
Author SHA1 Message Date
Austin MroczekandGitHub 72aaeda8a0 Bump total_connect_client to 2021.11.2 (#58818)
* update total_connect_client to 2021.10

* update for total_connect_client changes

* remove unused return value

* bump total_connect_client to 2021.11.1

* bump total_connect_client to 2021.11.2

* Move to public ResultCode

* load locations to prevent 'unknown error occurred'

* add test for zero locations

* Revert "load locations to prevent 'unknown error occurred'"

This reverts commit 28b8984be5.

* Revert "add test for zero locations"

This reverts commit 77bf7908d5.
2021-11-07 15:30:34 -08:00
J. Nick KostonandGitHub b75476e844 Add support for matching the zeroconf model property (#58922) 2021-11-07 07:44:15 -08:00
Antoni RóżańskiandGitHub 9aec8f61d7 Rewrite signal_messenger unittest to pytest (#57777)
* convert signal messenger unittest to pytest

* more fixtures

* more assertions and fixed test attachment sending

* reverted unrelated changes

* fixed flake errors

* Flake8 related issues fixed

* HHTPStatus instead of int
2021-11-06 23:36:59 +01:00
Franck NijhofandGitHub fdf1bfa140 Add RDW Vehicle information integration (#59240) 2021-11-06 19:34:51 +01:00
fc7d4ed118 Add decoded telegram payload to knx_event service (#57621)
* decode knx_event telegram payload with given dpt

* exception handling for invalid payloads

* Update homeassistant/components/knx/__init__.py

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
2021-11-06 19:31:25 +01:00
Aaron BachandGitHub 2e4ee487c1 Address post-merge Ridwell code review (#58857) 2021-11-06 10:11:00 -06:00
Marvin WichmannandGitHub 8a1d80c609 Fix regression after merging fixtures with old path (#59187)
* Fix regression after merging old fixtures

* Move to symo
2021-11-05 21:10:55 +01:00
Matthias AlphartandGitHub d2ffecbca4 Tests for the Fronius integration (#57269)
* tests for a Symo inverter system

* update testing requirement

* add tests for energy meter data

* move response JSONs to fixture directory

* add storage system response

* review suggestion
2021-11-05 19:27:17 +01:00
Martin HjelmareandGitHub 30cba6ee8b Add zwave_js select entity category (#59157)
* Set zwave_js select entity as category config

* Update tests
2021-11-05 10:31:51 -04:00
Guido SchmitzandGitHub 442d65e8da Use entity category in devolo Home Control (#59104)
* Use entity category

* Add tests
2021-11-05 13:11:48 +01:00
5ac55b3443 Add binary_sensor to venstar to track alerts (#58831)
* Add binary_sensor to venstar to track alerts

* Add binary_sensor.py to coveragerc

* Apply suggestions from code review by alengwenus

Co-authored-by: Andre Lengwenus <alengwenus@gmail.com>

* Fixup black any mypy complaints

* Yank the typing, it makes everything complain

Co-authored-by: Andre Lengwenus <alengwenus@gmail.com>
2021-11-05 12:00:57 +01:00
Erik MontnemeryandGitHub e5ee38d3b0 Adjust recorder tests according to #59087 (#59143) 2021-11-05 10:49:58 +01:00
Erik MontnemeryandGitHub 470b01e4ce Move async_migration_in_progress (#59087) 2021-11-05 10:40:56 +01:00
epenetandGitHub 8cc2f3b7a4 Use zeroconf attributes in enphase-envoy (#58961) 2021-11-05 00:34:10 -05:00
Erik MontnemeryandGitHub 185f7beafc Improve recorder migration tests (#59075) 2021-11-04 20:21:38 -07:00
Glenn WatersandGitHub ca00551e4f Environment Canada config_flow fix (#59029) 2021-11-04 20:11:22 -07:00
Allen PorterandGitHub 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 WichmannandGitHub 54e7ef08e3 Add test for KNX weather entity (#58898) 2021-11-04 22:52:39 +01:00
Marvin WichmannandGitHub 56b7f94bbc Add tests for KNX scene (#58900) 2021-11-04 22:51:42 +01:00
Matthias AlphartandGitHub 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 SpencerandGitHub ea4009fd81 Use entity_category in litterrobot (#59074) 2021-11-04 22:34:54 +01:00
Erik MontnemeryandGitHub a62bc6b3b9 Minor tweak of cv.deprecated + cv.removed (#59095)
* Minor tweak of cv.deprecated + cv.removed

* Satisfy pylint
2021-11-04 19:12:21 +01:00
Jan BouwhuisandGitHub c3fc19915e Mqtt fan fail deprecated options for classic speeds (#58992)
* Fail deprecated options

* new removed validator

* correct module_name - add tests

* Add test cant find module cv.removed

* module name from stack+1

* Remove error from log. Just throw.

* assert on thrown exception text

* cleanup formatting remove KeyStyleAdapter

* format the replacement_key and update test

* deprecated vs removed - add raise_if_present opt

* doc string update

* is deprecated
2021-11-04 17:54:27 +01:00
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 MontnemeryandGitHub 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 MontnemeryandGitHub be4e9f91b6 Change minimum supported SQLite version to 3.31.0 (#59073) 2021-11-04 16:34:35 +01:00
Guido SchmitzandGitHub 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 KostonandGitHub 10d6247fee Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
Teemu RandGitHub ea657e6656 Accept all roborock vacuum models for xiaomi_miio (#59018) 2021-11-04 14:14:31 +01:00
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 DuffyandGitHub 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 TandGitHub 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
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 BouwhuisandGitHub 0c4863198e Add command_template to MQTT number platform (#58949) 2021-11-02 18:21:49 +01:00
Erik MontnemeryandGitHub 30f7bc0f18 Use freezegun in DST tests (#58939) 2021-11-02 18:11:39 +01:00
Chris BrowetandGitHub 2df1ba2346 Add device_class to MQTT switch (#58931) 2021-11-02 17:40:05 +01:00
Jan BouwhuisandGitHub 339117aceb Add command_template to mqtt select platform (#58934) 2021-11-02 17:33:23 +01:00
Erik MontnemeryandGitHub 8d910c5079 Revert "Add offset support to time trigger" (#58947) 2021-11-02 16:56:38 +01:00
Dermot DuffyandGitHub 4746ff3798 Address late review of motionEye services (#58924) 2021-11-02 13:33:08 +01:00
hesselonlineandGitHub bfb0d8dd19 Split wallbox sensor type and number type (#58807) 2021-11-02 11:11:46 +01:00
Paulus SchoutsenandGitHub 31153ac155 Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00
1cd9be7538 Fix recursive limit in find_next_time_expression_time (#58914)
* Fix recursive limit in find_next_time_expression_time

* Add test case

* Update test_event.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-02 00:11:17 +01:00
a9c0f89c09 Fix find_next_time_expression_time (#58894)
* Better tests

* Fix find_next_time_expression_time

* Add tests for Nov 7th 2021, Chicago transtion

* Update event tests

* Update test_event.py

* small performance improvement

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-01 17:45:13 +01:00
Paulus SchoutsenandGitHub f51e1fcb67 Check for uncaught service not found exceptions (#58010) 2021-11-01 14:33:09 +01:00
f3d5768fb4 Move WLED sensors to entity descriptions (#58839)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-11-01 08:54:05 +01:00
uvjustinandGitHub 9aaa92f366 Improve part metadata in stream (#58822) 2021-10-31 20:23:01 -07:00
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 NijhofandGitHub 9daf2ee65d Fix Plugwise not updating config entry with discovery information (#58819) 2021-10-31 12:19:51 -07:00
MichaelandGitHub 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 DuffyandGitHub ab7d8db481 Add motionEye media browser (#53436) 2021-10-31 10:59:31 -05:00