Commit graph

11634 commits

Author SHA1 Message Date
Erik Montnemery
eb068bc850
Fix targeting all or none entities in service calls ()
* Fix targeting all or none entities in service calls

* Add test
2022-03-22 19:45:27 +02:00
Jeff Rescignano
0720b0f891
Add all option to light group ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-22 16:09:18 +01:00
J. Nick Koston
94cd656670
Use new internal_state property in tplink diagnostics () 2022-03-22 14:58:16 +01:00
Joakim Sørensen
0802b64d95
Add boolean for certificate usage to analytics ()
* Add boolean for certificate usage to analytics

* Mock hass.http
2022-03-22 14:49:43 +01:00
Jan Bouwhuis
5afe8fd2db
Revert "Add MQTT notify platform ()" ()
This reverts commit e574a3ef1d.
2022-03-22 12:51:24 +01:00
Joakim Sørensen
d17f8e9ed6
Add update platform to the Supervisor integration () 2022-03-22 12:21:12 +01:00
Erik Montnemery
1b955970f8
Allow hiding and unhiding group members () 2022-03-22 12:14:34 +01:00
Erik Montnemery
b5d2c6e43a
Add config flow for threshold binary sensor ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-22 11:32:19 +01:00
epenet
87378016c1
Add basic support for SamsungTV encrypted models ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-22 00:11:41 -10:00
J. Nick Koston
06ebb0b8b3
Add support for effects to tplink light strips () 2022-03-21 20:20:40 -10:00
Pawel
bcb8c7ec3c
Add API endpoint get_statistics_metadata ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-21 21:14:47 -07:00
Michael
70a771b6ed
Respect disable_new_entities for new device_tracker entities () 2022-03-21 20:40:33 -07:00
IceBotYT
a43505a0a3
Add PECO power outage counter integration ()
* Create a new NWS Alerts integration

* Create a new NWS Alerts integration

* Create new PECO integration

* Remove empty keys

* Revert "Create a new NWS Alerts integration"

This reverts commit 38309c5a87.

* Revert "Create a new NWS Alerts integration"

This reverts commit aeabdd37b8.

* Fix test with new mock data

* Add init and sensor to .coveragerc and more tests for config flow

* Small fixes and replacing patch with pytest.raises in testing invalid county

* Add type defs and fix test_config_flow to use MultipleValid instead

* Fix  issues with 'typing.Dict'

* Move API communication to seperate PyPI library

* Switch PyPI library from httpx to aiohttp to allow for passing in websessions

* Commit file changes requested by farmio as listed here: d267e4300a

* Add suggestions requested by farmio as listed here: 586d8ffa42

* Move native_unit_of_measurement from prop to attr

* Update PLATFORMS constant type annotation

Co-authored-by: Matthias Alphart <farmio@alphart.net>

* Add peco to .strict-typing

I am from school so I can't run mypy atm

* Forgot to import Final

* Do as requested [here](https://github.com/home-assistant/core/runs/5070634928?check_suite_focus=true)

* Updated mypy.ini, checks should pass now

* Fix to conform to mypy restrictions https://github.com/home-assistant/core/runs/5072861837\?check_suite_focus\=true

* Fix type annotations

* Fix tests

* Use cast in async_update_data

* Add data type to CoordinatorEntity and DataUpdateCoordinator

* More cleanup from suggestions here: https://github.com/home-assistant/core/pull/65194\#pullrequestreview-908183493

* Fix tests for new code

* Cleaning up a speck of dust

* Remove unused variable from the peco sensor

* Add rounding to percentage, and extra clean-up

* Final suggestions from @farmio

* Update SCAN_INTERVAL to be a little bit faster

* Change the SCAN_INTERVAL to be somewhat near the update interval of the outage map, as noted by farmio

* New UpdateCoordinator typing
2022-03-21 23:56:53 +01:00
Erik Montnemery
247af2e74f
Improve recorder setup in tests ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-21 15:49:18 -07:00
jjlawren
653305b998
Support multiple Plex servers in media browser () 2022-03-21 15:48:44 -07:00
Franck Nijhof
28d3117a88
Track number of persons in a Zone () 2022-03-21 10:41:55 -07:00
Franck Nijhof
40d4495ed0
Add update platform to WLED ()
* Add update platform to WLED

* Copy pasta fixes

* Apply suggestions from code review

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

* Update tests/components/wled/test_update.py

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

* Fix tests

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-21 15:38:29 +01:00
Franck Nijhof
2424564d2c
Change update default entity category based on features () 2022-03-21 14:35:40 +01:00
Franck Nijhof
073fb40b79
Add update entity platform ()
Co-authored-by: Glenn Waters <glenn@watrs.ca>
2022-03-21 11:02:48 +01:00
Diogo Gomes
ba814af701
Adopt SelectEntity in Utility Meter ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-21 08:21:26 +01:00
Paulus Schoutsen
3213091b8d
Add integration type () 2022-03-20 20:38:13 -07:00
J. Nick Koston
4f9df1fd0f
Fix logbook tests () 2022-03-20 20:34:02 -07:00
Paulus Schoutsen
929df2bc29
Improve error handling process_play_media_url () 2022-03-20 20:25:15 -07:00
Jeef
ed94cc3673
Intellifire DHCP Auto Discovery ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-20 13:51:54 -10:00
Paulus Schoutsen
8bbbd1947d
Raise if referenced entity does not support service () 2022-03-20 16:01:58 -07:00
Franck Nijhof
1d35b91a14
Add calendar platform to Twente Milieu ()
* Add calendar platform to Twente Milieu

* Apply suggestions from code review

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

* Sorting...

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 20:37:01 +01:00
Baptiste Candellier
a136cf7086
Remove SmartHab integration () 2022-03-20 19:00:16 +01:00
J. Nick Koston
3150915cb7
Convert unindexed domain queries to entity_id queries () 2022-03-20 01:28:17 -10:00
J. Nick Koston
816695cc96
Avoid selecting attributes in the history api when no_attributes is passed () 2022-03-19 23:47:22 -10:00
Garrett
a0a96dab05
Add door locks to Subaru integration ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-19 23:41:53 -10:00
Erik Montnemery
cf4033b1bc
Simplify time zone setting in tests ()
* Simplify timezone setting in tests

* Fix typo

* Adjust caldav tests

* Adjust input_datetime tests

* Adjust time_date tests

* Adjust tod tests

* Adjust helper tests

* Adjust recorder tests

* Adjust risco tests

* Adjust aemet tests

* Adjust flux tests

* Adjust forecast_solar tests

* Revert unnecessary change in forecast_solar test

* Adjust climacell tests

* Adjust google tests

* Adjust sensor tests

* Adjust sonarr tests

* Adjust template tests

* Adjust zodiac tests

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 10:25:15 +01:00
Álvaro Fernández Rojas
f1f48475f2
Add Airzone coordinator tests () 2022-03-19 11:34:52 -10:00
J. Nick Koston
7ee647cc78
Fix FOREIGN KEY constraint failed when removing state_attributes () 2022-03-19 14:21:28 -07:00
J. Nick Koston
fed447a3f4
Filter IPv6 addreses from enphase_envoy discovery () 2022-03-19 13:40:00 -07:00
Raman Gupta
4cd4fbefbf
Add new tomorrow.io integration to replace Climacell ()
* Add new tomorrow.io integration to replace Climacell - Part 1/3 ()

* Add new tomorrow.io integration to replace Climacell - Part 1/3

* remove unused code

* remove extra test

* remove more unused code

* Remove even more unused code

* Feedback

* clean up options flow

* clean up options flow

* tweaks and fix tests

* remove device_class from tomorrowio entity description class

* use timestep

* fix tests

* always use default name but add zone name if location is in a zone

* revert change that will go into future PR

* review comments

* move code out of try block

* bump max requests to 500 as per docs

* fix tests

* Add new tomorrow.io integration to replace Climacell - Part 2/3 ()

* Add new tomorrow.io integration to replace Climacell - Part 2/3

* translations

* set config flow to false in manifest

* Cleanup more code and re-add options flow test

* fixes

* patch I/O calls

* Update tests/components/climacell/test_config_flow.py

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

* remove unused import

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

* Fix codeowners

* fix mypy and pylint

* Switch to DeviceInfo

* Fix fixture location and improve sensor entities in tomorrowio integration ()

* Add new tomorrow.io integration to replace Climacell - Part 3/3 ()

* Switch to DeviceInfo

* Add new tomorrow.io integration to replace Climacell - Part 1/3 ()

* Add new tomorrow.io integration to replace Climacell - Part 1/3

* remove unused code

* remove extra test

* remove more unused code

* Remove even more unused code

* Feedback

* clean up options flow

* clean up options flow

* tweaks and fix tests

* remove device_class from tomorrowio entity description class

* use timestep

* fix tests

* always use default name but add zone name if location is in a zone

* revert change that will go into future PR

* review comments

* move code out of try block

* bump max requests to 500 as per docs

* fix tests

* Migrate ClimaCell entries to Tomorrow.io

* tweaks

* pylint

* Apply fix from  to tomorrowio integration

* lint and mypy

* use speed conversion instead of distance conversion

* Use SensorDeviceClass enum

* Use built in conversions and remove unused loggers

* fix requirements

* Update homeassistant/components/tomorrowio/__init__.py

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

* Use constants

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

* Black

* Update logic and add coverage

* remove extra line

* Do patching correctly

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-19 08:42:22 +01:00
Michael Kowalchuk
e0b577f8bd
Add zwave_js fan preset modes and enable them for Inovelli LZW36 ()
* Rework fan data templates to support preset modes, and define data for the Inovelli LZW36

* Add tests. Add dispatching to async_set_preset_mode in async_turn_on.

* Add a test case for invalid preset modes

* Remove unintended merge artifact

* Fix indentation

* Fix merge error

* rm blank line

* Add tests for invalid fan config data, and fix an issue where this prevented the node from being added.

* Fix tests and improve error handling
2022-03-19 03:56:05 +01:00
Franck Nijhof
171c58fed2
Rename Lovelace to Dashboards () 2022-03-18 23:29:57 +01:00
J. Nick Koston
4cc8998ea7
Make powerwall attribute sensors their own sensors () 2022-03-18 21:23:26 +01:00
Robert Hillis
619c1f014b
Remove deprecated yaml config from trafikverket_weatherstation () 2022-03-18 19:33:01 +01:00
jjlawren
dbb79e2937
Add support for Sonos subwoofer gain controls () 2022-03-18 10:12:10 -07:00
Allen Porter
41a032e3e3
Add diagnostics to stream's Stream objects ()
* Add diagnostics to stream's Stream objects

Add diagnostics key/value pair to the Stream object. Diagnostics support
in camera integration will be added in a follow up and will access the
diagnostics on the Stream object, similar to the examples in the unit
test.

* Rename to audio/video codec

* Fix test codec names

* Update tests/components/stream/test_worker.py

Co-authored-by: uvjustin <46082645+uvjustin@users.noreply.github.com>

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: uvjustin <46082645+uvjustin@users.noreply.github.com>
2022-03-18 07:40:09 -07:00
Franck Nijhof
2686be921c
Remove deprecated (old) Z-Wave integration ()
* Remove deprecated (old) Z-Wave integration

* Mark migration tests as skip, for later cleanup
2022-03-18 13:09:10 +01:00
Simone Chemelli
35261a9089
Add switch platform to UptimeRobot ()
* Add switch platfor mto UptimeRobot

* Add tests

* Apply review comment

* review comments part 2

* review comments part 3

* Fix tests after swapping logic on/off

* Fix reauth test

* Check for read-only key

* Fix reauth for switch platform

* mypy

* cleanup

* cleanup part 2

* Fixes + review comments

* Tests

* Apply more review comments

* Required changes

* fix test

* Remove if

* 100% tests coverage

* Check readonly key in config_flow

* Fix strings & translation

* Add guard for 'monitor' keys

* allign tests

* Wrong API key message reworded
2022-03-18 12:18:19 +01:00
Erik Montnemery
5bb271c9fb
Add config flow for derivative sensor () 2022-03-18 12:14:38 +01:00
J. Nick Koston
9215702388
Separate attrs into another table (reduces database size) () 2022-03-18 00:23:13 -10:00
Erik Montnemery
d7145095ef
Tweak selectors ()
* Optionally don't convert output of duration and time selectors

* Allow number selector selection to be None

* Never convert output of duration and time selectors

* Revert "Allow number selector selection to be None"

This reverts commit b6f52c1e83.
2022-03-18 10:26:05 +01:00
Erik Montnemery
2fcced333d
Add config flow for sun ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-18 10:12:15 +01:00
J. Nick Koston
bc862e97ed
Use a dedicated executor pool for database operations ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-17 23:09:01 -10:00
Erik Montnemery
0655ebbd84
Add config flow for integration sensor () 2022-03-18 09:52:17 +01:00
Paulus Schoutsen
ad1e43e083
Add support for variables on trigger () 2022-03-18 09:25:22 +01:00