Commit Graph

12509 Commits (2942986a7b08571c3b90e0bece7fb37b02072060)

Author SHA1 Message Date
Allen Porter 32e4046435
Prepare google calendar integration for Application Credentials (#71748)
* Prepare google calendar integration for Application Credentials

Update google calendar integration to have fewer dependencies on
yaml configuration data to prepare for supporting application
credentials, which means setup can happen without configuration.yaml
at all. This pre-factoring will allow the following PR adding
application credentials support to be more focused.

* Add test coverage for device auth checks
2022-05-13 04:33:52 +02:00
J. Nick Koston 7ab4960b1e
Restore v23 stats migration tests (#71743) 2022-05-12 21:14:02 -04:00
J. Nick Koston 24a0007785
Add additional context data to logbook events (#71721) 2022-05-12 17:21:14 -07:00
J. Nick Koston 1d9fb4bca8
Fix process_datetime_to_timestamp and add test coverage (#71755) 2022-05-12 17:12:50 -07:00
Paul Annekov d76ff7d5a2
Changed API for Ukraine Alarm (#71754) 2022-05-12 16:45:39 -07:00
uvjustin 7e49ae6410
Add use_wallclock_as_timestamps option to generic (#71245)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-12 16:43:24 -07:00
G Johansson a746d7c1d7
Improve code quality in sql integration (#71705) 2022-05-12 19:40:00 -04:00
Nathan Spencer ae89a1243a
Refactor litterrobot to use SensorEntityDescription (#71224) 2022-05-12 13:15:59 -05:00
Erik Montnemery 3332c853c4
Remove prints from template tests (#71746) 2022-05-12 18:34:26 +02:00
Erik Montnemery 11cc1feb85
Tweak template switch tests (#71738) 2022-05-12 17:08:21 +02:00
Erik Montnemery 35e4f11e0b
Tweak template lock tests (#71734) 2022-05-12 16:29:48 +02:00
Erik Montnemery b70e97e949
Remove unused calls fixture from template tests (#71735) 2022-05-12 16:04:01 +02:00
Erik Montnemery 1ef3800844
Tweak template cover tests (#71732) 2022-05-12 15:22:57 +02:00
Bouwe Westerdijk 5a7624bfd4
Bump plugwise to v0.18.2 (#71731) 2022-05-12 15:19:50 +02:00
Erik Montnemery 8f50a70ff5
Tweak template alarm tests (#71730) 2022-05-12 14:09:43 +02:00
Rudolf Offereins 577b8cd976
Add Geocaching integration (#50284)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Reinder Reinders <reinder.reinders@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-05-12 12:12:47 +02:00
Franck Nijhof 135326a4a6
Remove YAML configuration from filesize (#71692) 2022-05-12 10:31:42 +02:00
Franck Nijhof 3ce19cd6f8
Remove YAML configuration from DuneHD (#71694) 2022-05-12 09:39:49 +02:00
Raman Gupta 533257021c
Parallelize zwave_js service calls (#71662)
* Parallelize zwave_js service calls to speed them up and handle exceptions properly

* Fix bug

* Add tests

* Fix comments

* Additional comment fixes

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-12 03:07:58 -04:00
Raman Gupta 0d69adb404
Send initial message for certain zwave_js ws subscriptions (#71723)
* Send initial message for certain zwave_js ws subscriptions

* Be consistent

* fix tests and bugs
2022-05-12 03:07:11 -04:00
Raman Gupta ca52aa47aa
Enable sentry reporting for zwave_js (#71719)
* Enable sentry reporting for zwave_js

* Fix test
2022-05-12 03:05:35 -04:00
J. Nick Koston 9cd81db5b3
Add device_id and logbook descriptions to lutron_caseta (#71713) 2022-05-11 20:45:16 -07:00
J. Nick Koston 1dc15bb7c8
Prevent history_stats from rejecting states when microseconds differ (#71704) 2022-05-11 20:44:35 -07:00
J. Nick Koston 04af9698d3
Add logbook/get_events websocket endpoint (#71706)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-11 22:28:06 -05:00
Franck Nijhof 08851d8366
Remove YAML configuration from International Space Station (ISS) (#71693) 2022-05-12 02:32:02 +02:00
J. Nick Koston e2cef55162
Add history/history_during_period websocket endpoint (#71688) 2022-05-11 17:52:22 -05:00
J. Nick Koston 81e8d2ab86
Significantly improve logbook performance when selecting entities (#71657) 2022-05-11 15:27:02 -07:00
G Johansson 49491bcda5
Sensibo test data adjustment from late review (#71482)
* Sensibo test data

* Separate pytest fixture for json load

* Scope to session
2022-05-11 19:36:30 +02:00
J. Nick Koston 1304808f89
Add additional test cover for history_stats (#71648) 2022-05-11 13:09:55 +02:00
Erik Montnemery fb6cdb5a38
Optimistically set hs_color in template light (#71629)
* Optimistically set hs_color in template light

* Update light.py

* Update test
2022-05-11 09:57:54 +02:00
Graham Arthur Blair 945eba9aa3
Change Ring Chime play sound Buttons to a Siren (#71449) 2022-05-10 13:49:38 -07:00
Franck Nijhof ef16e6c129
Fix Plugwise recovering from aiohttp client error (#71642) 2022-05-10 15:28:44 +02:00
J. Nick Koston 26177bd080
Convert logbook to use lambda_stmt (#71624) 2022-05-10 08:23:13 -05:00
Erik Montnemery 275a90a2e8
Check state attributes in template light tests (#71608) 2022-05-10 12:46:02 +02:00
Andre Richter 3a00c95113
Add device_info and entity_category to Vallox (#67353)
* Add device_info and entity_category to Vallox

* Fix DeviceInfo

* Address review comments 1

* vallox suggested changes

Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-09 17:00:31 -05:00
Paulus Schoutsen 64636a4310
Add service entity context (#71558)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-05-09 14:45:53 -07:00
J. Nick Koston d8336a5216
Fix missing context_id in script logbook entries (#71602) 2022-05-09 15:22:27 -05:00
J. Nick Koston 222baa53dd
Make database access in the eventloop raise an exception (#71547) 2022-05-09 15:22:08 -05:00
J. Nick Koston 2560d35f1c
Always show the start and stop event in logbook (#71600) 2022-05-09 15:21:21 -05:00
Erik Montnemery 347193055e
Rename logbook humanify function (#71597)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-09 23:10:26 +03:00
Michael 287bc5e3dc
Add release url to Fritz!Tools update entity (#71606)
* add release url to update entity

* fix test
2022-05-09 23:07:47 +03:00
TheHolyRoger 0fcdca2d71
Add optional base64 decoding of mqtt camera image (#71223)
Add unittest for b64 decoding of camera, fix linting
2022-05-09 21:40:15 +02:00
J. Nick Koston 37c4318d33
Fix merge conflict with master to dev in sabnzbd (CI fix) (#71605) 2022-05-09 12:58:42 -05:00
epenet 75ce66e8bd
Migrate wemo light to ColorMode (#70857) 2022-05-09 18:42:18 +02:00
Erik Montnemery e5870c65ee
Add missing cast test fixture (#71595) 2022-05-09 18:41:25 +02:00
Álvaro Fernández Rojas 88c2c5c36c
Add Binary Sensors for Airzone Systems (#69736) 2022-05-09 09:07:11 -05:00
Paulus Schoutsen 539ce7ff0e
Allow mobile app to disable entities by default (#71562) 2022-05-09 08:05:31 -05:00
Álvaro Fernández Rojas a599325c2d
Add QNAP QSW Binary Sensor platform (#70868) 2022-05-09 07:44:14 -05:00
epenet 141688e210
Cleanup ServiceInfo compatibility (#60540)
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-09 14:17:48 +02:00
Erik Montnemery d284e579bb
Improve Google Cast detection of HLS playlists (#71564) 2022-05-09 13:57:32 +02:00
Erik Montnemery 524920dd2e
Add 'toggle' device action to fans (#71570) 2022-05-09 13:49:35 +02:00
Robert Hillis 4db289ad6e
Remove deprecated yaml config from Deluge (#71487) 2022-05-09 13:22:51 +02:00
epenet 08856cfab0
Remove 1-Wire SysBus (ADR-0019) (#71232) 2022-05-09 13:16:23 +02:00
J. Nick Koston 30fdfc454f
Avoid lowercasing entities after template ratelimit recovery (#71415) 2022-05-09 12:48:38 +02:00
Jan Bouwhuis 5d9dc8252b
Use helper for testing an event change (#71579) 2022-05-09 11:52:08 +02:00
Shai Ungar f50681e3d3
Migrate sabnzbd sensors unique ids (#71455)
* Migrate sensors unique ids

1. migrate sensors to have unique id constructed also from entry_id
2. add migration flow in init
3. bump config flow to version 2
4. add tests for migration

* move migrate to async_setup_entry

* 1. Use the entity registry api in tests
2. Set up the config entry and not use integration directly
3. remove patch for entity registry

* fix too many lines

* Update tests/components/sabnzbd/test_init.py

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

* Update tests/components/sabnzbd/test_init.py

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

* Update tests/components/sabnzbd/test_init.py

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

* Update tests/components/sabnzbd/test_init.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-09 09:27:23 +02:00
epenet 1be2438ef6
Use climate enums in mqtt (#70696) 2022-05-09 08:15:11 +02:00
J. Nick Koston 24d7a464e1
Refactor logbook to reduce overhead and complexity (#71509) 2022-05-08 21:47:26 -07:00
Guido Schmitz 2b30bda6c8
Add binary sensor platform to devolo Home Network (#60301)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-08 21:33:20 -05:00
J. Nick Koston cec7e53302
Fix zeroconf tests (#71557) 2022-05-08 19:15:18 -07:00
Fairesoimeme 1d63c2069e
Add ZiGate device on automatic integration USB and ZEROCONF (#68577)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-08 18:27:09 -05:00
Álvaro Fernández Rojas 9a5e0281db
Add missing AEMET weather units (#70165) 2022-05-08 18:20:18 -05:00
Shawn Saenger 5e737bfe4f
Add ws66i core integration (#56094)
* Add ws66i core integration

* Remove all ws66i translations

* Update ws66i unit tests to meet minimum code coverage

* Update ws66i based on @bdraco review

* General improvements after 2nd PR review

* Disable entities if amp shutoff, set default source names, set 30sec polling

* Add _attr_ and change async_on_unload

* Improve entity generation

* Implement coordinator

* Made options fields required, retry connection on failed attempts, use ZoneStatus for attributes

* Refactor WS66i entity properties, raise HomeAssistantError on restore service if no snapshot

* Update to pyws66i v1.1

* Add quality scale of silver to manifest

* Update config_flow test
2022-05-08 16:52:39 -05:00
J. Nick Koston 7c9c0e911a
Move do_adhoc_statistics to recorder test helpers (#71544) 2022-05-08 12:45:57 -07:00
Brandon Rothweiler e46310ac0b
Add device class for Mazda pressure sensors (#71539) 2022-05-08 20:29:58 +01:00
Paul Annekov 2eaaa525f4
Add Ukraine Alarm integration (#71501)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-08 08:22:20 -07:00
Jelte Zeilstra d52137cc1a
Add state class measurement to deCONZ LightLevel sensors (#71516) 2022-05-08 15:54:43 +02:00
J. Nick Koston a8aa0e1cca
Add Estimated Database Size to the recorder system health (#71463) 2022-05-07 21:02:54 -07:00
Paulus Schoutsen e35a5a1a28
Fix other enums in helpers (#71505) 2022-05-07 20:57:48 -07:00
J. Nick Koston 523828c81e
Ensure sql sensors keep working after using the options flow (#71453)
* Ensure sql sensors keep working after using the options flow

Fixes
```
2022-05-06 16:17:57 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up sql platform for sensor
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/Users/bdraco/home-assistant/homeassistant/components/sql/sensor.py", line 97, in async_setup_entry
    name: str = entry.options[CONF_NAME]
KeyError: name
```

* ensure saving the options flow fixes the broken config entry

* ensure options changes take effect right away

* Add cover to validate the reload
2022-05-07 14:18:40 -07:00
Álvaro Fernández Rojas 21cee3b1c4
airzone: improve diagnostics (#71488)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-05-07 23:13:12 +03:00
Paulus Schoutsen b1a04302b5
Stringify enums in selectors (#71441) 2022-05-06 11:25:01 -07:00
G Johansson e5619f4af1
Remove yaml import trafikverket_train (#71410) 2022-05-06 14:27:12 +03:00
G Johansson 5931f6598a
Add tests for Sensibo (#71148)
* Initial commit

* Check temperature missing

* fix temp is none

* Fix parallell

* Commit to save

* Fix tests

* Fix test_init

* assert 25

* Adjustments tests

* Small removal

* Cleanup

* no hass.data

* Adjustment test_coordinator

* Minor change test_coordinator
2022-05-06 10:05:15 +03:00
J. Nick Koston d612b9e0b4
Reduce event loop overhead for listeners that already queue (#71364)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-05 23:09:10 -04:00
Graham Arthur Blair c22cf3b3d2
Add buttons to Ring chime devices to play ding and motion chimes (#71370)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-05 16:12:51 -07:00
Paulus Schoutsen c8f95b7dfc
Ignore loading system entity category (#71361) 2022-05-05 14:33:37 -07:00
Paulus Schoutsen 353cc0b8c2
Fix importing blueprints (#71365)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-05-05 14:33:17 -07:00
Erik Montnemery d9a7c4a483
Only lookup unknown Google Cast models once (#71348)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-05 11:04:00 -07:00
Erik Montnemery 203bebe668
Include all non-numeric sensor events in logbook (#71331) 2022-05-05 13:16:36 -04:00
Ville Skyttä e3433008a2
Upgrade huawei-lte-api to 1.6.0, adapt to it (#71041)
* Upgrade huawei-lte-api to 1.6.0, adapt to it

https://github.com/Salamek/huawei-lte-api/releases/tag/1.5
https://github.com/Salamek/huawei-lte-api/releases/tag/1.5.1
https://github.com/Salamek/huawei-lte-api/releases/tag/1.5.2
https://github.com/Salamek/huawei-lte-api/releases/tag/1.5.3
https://github.com/Salamek/huawei-lte-api/releases/tag/1.5.4
https://github.com/Salamek/huawei-lte-api/releases/tag/1.6

* Fix logout on config flow

Co-authored-by: Antonino Piazza <antpza@gmail.com>
2022-05-05 19:37:32 +03:00
Antoni Czaplicki 191230f535
Refactor vulcan integration (#71175) 2022-05-05 14:32:36 +02:00
Álvaro Fernández Rojas 6a35c3f2ab
Update aioairzone to v0.4.3 (#71312)
* Update aioairzone to v0.4.3

Fixes exception on older local API.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* airzone: switch to set_hvac_parameters function

Fixes failing airzone tests.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-05-05 10:06:23 +03:00
Michael Chisholm eebf3acb93
Relax dlna_dmr filtering when browsing media (#69576)
* Fix incorrect types of test data structures

* Loosen MIME-type filtering for async_browse_media

* Add option to not filter results when browsing media

Some devices do not report all that they support, and in this case
filtering will hide media that's actually playable. Most devices are OK,
though, and it's better to hide what they can't play. Add an option, off by
default, to show all media.

* Fix linting issues
2022-05-04 22:22:15 -07:00
epenet db08c04da6
Only test for EncryptedBridge in Samsung J/H models (#71291) 2022-05-04 22:15:24 -07:00
J. Nick Koston eb77f8db85
Complete strict typing for recorder (#71274)
* Complete strict typing for recorder

* update tests

* Update tests/components/recorder/test_migrate.py

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

* Update tests/components/recorder/test_migrate.py

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

* Remove the asserts

* remove ignore comments

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-04 12:22:50 -05:00
J. Nick Koston 13ce0a7d6a
Fix history using pre v25 queries during v26 migration (#71295) 2022-05-04 08:56:50 -07:00
Thomas Dietrich f2d6a06a6a
Add additional characteristics to the statistics integration (#62631)
* Improve config checking, add device_class timestamp

* Improve warning message
2022-05-04 15:57:56 +02:00
Erik Montnemery 1df99badcf
Allow scripts to turn themselves on (#71289) 2022-05-04 15:54:37 +02:00
Joakim Sørensen 03ab9d07a8
Remove more info links for hassio system health (#71286) 2022-05-04 15:47:24 +02:00
ollo69 ee8eac10c9
Address late review of AsusWRT unique id PR (#71281) 2022-05-04 11:39:55 +02:00
Paulus Schoutsen 6e675d6f07
Fix homekit tests in beta (#71268) 2022-05-03 14:09:35 -07:00
ollo69 93153b3790
Add UniqueID to AsusWRT config entry (#70478) 2022-05-03 13:56:57 -07:00
J. Nick Koston e30940ef2a
Move processing of recorder service call arguments into services.py (#71260) 2022-05-03 13:56:22 -07:00
Erik Montnemery e9abfad361
Reject MQTT topics which include control- or non-characters (#71263) 2022-05-03 12:19:43 -07:00
J. Nick Koston 236d8aa277
Avoid recording static attributes for group entities (#71256) 2022-05-03 13:22:49 -05:00
J. Nick Koston e1be6dd34f
Move recorder services to services.py (#71249) 2022-05-03 10:38:44 -07:00
J. Nick Koston 60bfcc6be4
Allow hidden entities to be selected in homekit include mode (#71250) 2022-05-03 09:47:13 -07:00
Erik Montnemery eba125b093
Ensure 'this' variable is always defined for template entities (#70911) 2022-05-03 07:43:44 -07:00
J. Nick Koston b562416eb2
Remove humidify_supported and dehumidify_supported attributes from nexia (#71248)
These non-standard attributes can already be infered from the dehumidify_setpoint
or humidify_setpoint and took up space in the database every time
any of the values changes
2022-05-03 17:33:50 +03:00
Erik Montnemery eb10654e01
Add test for failing conditions in sub scripts (#71238) 2022-05-03 13:06:13 +02:00
Franck Nijhof 99360ad7f4
Indicate disabled steps in script trace (#71237) 2022-05-03 13:04:59 +02:00
Erik Montnemery 92f1855bcf
Fix script conditions (#71235) 2022-05-03 11:28:08 +02:00
Erik Montnemery 1931600eac
Isolate parallel subscripts (#71233) 2022-05-03 10:36:58 +02:00
J. Nick Koston 29bda196b5
Break apart recorder into tasks and core modules (#71222) 2022-05-02 21:53:56 -07:00
J. Nick Koston 75026f9fed
Separate recorder logic for state_changed and non-state_changed events (#71204) 2022-05-02 17:22:53 -05:00
ollo69 ea456893f9
Review AndroidTV tests for media player entity (#71168) 2022-05-02 15:18:38 -07:00
J. Nick Koston 188040b8bb
Use lambda_stmt for recorder queries and migrate them to queries module (#71219) 2022-05-02 15:17:21 -07:00
Paulus Schoutsen 40cf75844a
Add media source support to Bose Soundtouch (#71209) 2022-05-02 20:02:20 +02:00
Yuval Aboulafia 7c46eb5952
Add test for incorrect config for Jewish Calendar (#71163)
* Loop load Jewish Calendar platforms

* Address review

* Add test for incorrect config

* add test to sensor platform
2022-05-02 20:52:00 +03:00
Paulus Schoutsen 0926470ef0
Skip signing URL that we know requires no auth (#71208) 2022-05-02 19:51:13 +02:00
Erik Montnemery 1aaf78ef99
Remove entity category system in favor of hidden_by (#68550) 2022-05-02 09:33:16 -07:00
Erik Montnemery f35e7d1129
Allow cancelling async_at_start helper (#71196) 2022-05-02 07:41:14 -07:00
Erik Montnemery 1e18307a66
Add reauth flow to Meater (#69895) 2022-05-02 15:50:13 +02:00
Erik Montnemery f6c2fb088c
Stop script if sub-script stops or aborts (#71195) 2022-05-02 14:59:58 +02:00
Erik Montnemery 546ba8169d
Remove entity registry entries when script is removed (#71193) 2022-05-02 13:15:19 +02:00
stegm 738701a2d6
Handle missing kostal plenticore battery option (#65237)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-02 11:42:18 +02:00
Robert Svensson 37b59dfcc0
Make sure sensor state value is not None prior to trying to used the scaled value (#71189) 2022-05-02 10:51:19 +03:00
J. Nick Koston 5db014666c
Avoid recording state_changed events in the events table (#71165)
* squash

fix mypy

* Update homeassistant/components/recorder/models.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* pass all columns

* fix commented out code

* reduce logbook query complexity

* merge

* comment

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-02 02:10:34 -05:00
Franck Nijhof 63679d3d29
Fix missing device & entity references in automations (#71103) 2022-05-01 21:49:50 -07:00
J. Nick Koston 2a9f043039
Use ULID short format for context ids (#71119) 2022-05-01 21:44:54 -07:00
J. Nick Koston c23866e5e5
De-duplicate event data into a new event_data table (#71135) 2022-05-01 21:01:17 -05:00
J. Nick Koston b8442d9340
Add json decode caching to logbook (#71080) 2022-05-01 19:33:31 -05:00
Raman Gupta ae01ec02e2
Allow custom integrations to support application_credentials platform (#71129) 2022-05-01 16:26:22 -07:00
Dave T 26c6328b1f
Generic camera handle template adjacent to portnumber (#71031) 2022-05-01 16:13:21 -07:00
J. Nick Koston ff48720c6a
Remove db schema v23 stats migration tests (#71137) 2022-05-01 16:11:11 -07:00
Robert Svensson 63e3095062
Abort UniFi Network options flow if integration is not setup (#71128) 2022-05-01 21:00:38 +02:00
Allen Porter 285fdeb581
Add calendar trigger offsets (#70963)
* Add support for calendar trigger offsets

* Add offset end test

* Update homeassistant/components/calendar/trigger.py

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

* Always include offset in trigger data

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-30 17:21:30 -07:00
Álvaro Fernández Rojas 7b2947bad7
Add QNAP QSW diagnostics support (#70871)
* qnap_qsw: add diagnostics support

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* qnap_qsw: diagnostics: several improvements

- Provide full config_entry.
- Reduce number of test asserts.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-04-30 23:13:35 +03:00
J. Nick Koston 109b4d45ca
Allow matching ssdp by manufacturerURL only (#71125) 2022-04-30 14:17:18 -05:00
Robert Svensson a0fe5b0247
Make deCONZ SSDP discovery more strict by matching on manufacturerURL (#71124) 2022-04-30 19:33:47 +02:00
Shay Levy 75debb7dec
Add entity id to template error logging (#71107)
* Add entity id to template error logging

* Increase coverage
2022-04-30 19:24:24 +03:00
J. Nick Koston 66a21e0bc3
Add basic system health data to the recorder (#71086) 2022-04-30 11:10:20 -05:00
Robert Hillis f14bc1cece
Clean up Steam integration (#71091)
* Clean up Steam

* uno mas

* uno mas

* uno mas
2022-04-30 17:40:57 +02:00
Allen Porter 00b5d30e24
Add application credentials platform (#69148)
* Initial developer credentials scaffolding
- Support websocket list/add/delete
- Add developer credentials protocol from yaml config
- Handle OAuth credential registration and de-registration
- Tests for websocket and integration based registration

* Fix pydoc text

* Remove translations and update owners

* Update homeassistant/components/developer_credentials/__init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Update homeassistant/components/developer_credentials/__init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Remove _async_get_developer_credential

* Rename to application credentials platform

* Fix race condition and add import support

* Increase code coverage (92%)

* Increase test coverage 93%

* Increase test coverage (94%)

* Increase test coverage (97%)

* Increase test covearge (98%)

* Increase test coverage (99%)

* Increase test coverage (100%)

* Remove http router frozen comment

* Remove auth domain override on import

* Remove debug statement

* Don't import the same client id multiple times

* Add auth dependency for local oauth implementation

* Revert older oauth2 changes from merge

* Update homeassistant/components/application_credentials/__init__.py

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

* Move config credential import to its own fixture

* Override the mock_application_credentials_integration fixture instead per test

* Update application credentials

* Add dictionary typing

* Use f-strings as per feedback

* Add additional structure needed for an MVP application credential

Add additional structure needed for an MVP, including a target
component Xbox

* Add websocket to list supported integrations for frontend selector

* Application credentials config

* Import xbox credentials

* Remove unnecessary async calls

* Update script/hassfest/application_credentials.py

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

* Update script/hassfest/application_credentials.py

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

* Update script/hassfest/application_credentials.py

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

* Update script/hassfest/application_credentials.py

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

* Import credentials with a fixed auth domain

Resolve an issue with compatibility of exisiting config entries when importing
client credentials

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-30 08:06:43 -07:00
Nathan Spencer 1ede67e51f
Reflect unavailable state when litter robot hasn't been seen recently (#70810) 2022-04-30 12:43:13 +03:00
Tom Harris 781ec87dff
Fix Insteon tests (#71092) 2022-04-29 21:26:27 -07:00
J. Nick Koston 4eca162a0a
Add reauth support to ISY994 (#71069) 2022-04-29 15:46:25 -07:00
Robert Svensson 7f094a928b
Fix linking issue when deCONZ gateway is not unlocked (#71082) 2022-04-29 15:34:33 -07:00
Robert Svensson e1f4b17971
Pydeconz raise ResponseError when deCONZ Rest API Plugin is not yet ready (#71078) 2022-04-29 23:55:55 +03:00
epenet 6bb685eaba
Use LightEntityFeature enum in smartthings (#71057) 2022-04-29 22:42:45 +03:00
G Johansson c90eb4d6b4
Fix sql integration issues 5.0 beta (#71063)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-29 10:00:44 -07:00
Franck Nijhof 682ac52a20
Support shorthand logical operators in script sequences (#71022) 2022-04-29 18:06:21 +02:00
J. Nick Koston aafe6ff0e2
Fix history_stats for timezones with a positive offset from UTC (#71038) 2022-04-28 23:48:58 -07:00
jjlawren 1f1932d224
Fix Sonos races related to grouping and startup (#71026) 2022-04-28 14:26:29 -07:00
Aaron Bach d791a08002
Ensure that email-based 2FA in SimpliSafe shows the progress UI (#71021) 2022-04-28 14:05:55 -07:00
Shai Ungar 8883f5482b
Sabnzbd config flow improvments (#70981)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-28 22:25:17 +02:00
Tom Harris a9ca774e7e
Insteon Device Control Panel (#70834)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-04-28 12:35:43 -07:00
David F. Mulcahey 1eb5316d89
Remove unnecessary update_before_add from ZHA (#71010)
* Additional streamlining for ZHA entity init

* fix tests
2022-04-28 20:57:26 +02:00
Aaron Bach d0f1168ff0
Ensure SimpliSafe re-auth only looks at SimpliSafe config entries (#71009)
* Ensure SimpliSafe re-auth only looks at SimpliSafe config entries

* Add a test

* Trigger Build

* Linting

* Comment

* Simplify test
2022-04-28 21:45:37 +03:00
Erik Montnemery 573e966d74
Migrate hue v1 light to color_mode (#69275)
* Migrate hue v1 light to color_mode

* Fix test

* Correct filter_supported_color_modes + add test

* Use ColorMode enum
2022-04-28 09:49:51 +02:00
Paulus Schoutsen 2e3e7f1e94
Sync area changes to google (#70936)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-27 22:32:13 -07:00
J. Nick Koston 6644050811
Add discovery support for polisy to isy994 (#70940) 2022-04-27 21:18:32 -07:00
David F. Mulcahey 27a5851ee2
Fix flaky ZHA tests (#70956) 2022-04-27 14:52:32 -10:00
ollo69 c8c27dba0f
Remove conditional logic in AndroidTV tests (#70944) 2022-04-27 17:17:56 -05:00
Dave T 2c028d203f
Remove invalid unique id from generic camera (#70568)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-27 17:08:18 -05:00
Theo Arends 31e3f4892e
Bump hatasmota to 0.4.1 (#70799)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-27 19:05:42 +02:00
David F. Mulcahey 361119d5c1
Improve ZHA startup performance (#70111)
* Remove semaphores and background mains init

* additional logging

* correct cache usage and update tests
2022-04-27 08:24:26 -07:00
Erik Montnemery c5d69ab1b2
Handle removed entites in collection.sync_entity_lifecycle (#70759)
* Handle removed entites in collection.sync_entity_lifecycle

* Add comment
2022-04-27 08:05:00 -07:00
Allen Porter 8a13c6744a
Bump gcal_sync to 0.6.2 and switch to google calendar async iterator api (#70616)
* Switch to google calendar async iterator api

* Update homeassistant/components/google/calendar.py

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

* Add test coverage for paging through results

* Bump gcal_sync to 0.6.1

* Bump gcal-sync 0.6.2

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-27 07:22:15 -07:00
Erik Montnemery c530bc823b
Support buffering in media_player device conditions (#70863)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-04-27 15:40:07 +02:00
Erik Montnemery 13cc7583ed
Support buffering in media_player reproduce state (#70859) 2022-04-27 11:48:00 +02:00
Erik Montnemery e982e315ee
Support buffering in media_player device triggers (#70864) 2022-04-27 11:47:04 +02:00
Aaron Bach 031149dfdd
Re-work SimpliSafe authentication to only need username/password (#70160) 2022-04-27 10:16:28 +02:00
epenet 492e183b7c
Migrate zerproc light to ColorMode (#70851) 2022-04-27 09:52:41 +02:00
Erik Montnemery 66551e6fcb
Add state buffering to media_player and use it in cast (#70802) 2022-04-27 09:49:50 +02:00
Reuben Bijl 3901b5c8e8
Add zwave_js MultilevelSwitch Notification (#70470)
Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2022-04-27 09:12:23 +02:00
ollo69 21f9b19fad
Review AndroidTV tests (#69048) 2022-04-26 23:26:22 -07:00
Marcel van der Veldt 25779a49a4
Add slimproto integration (Squeezebox players) (#70444)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-26 23:24:17 -07:00
Franck Nijhof 5c1be2f99d
Add unique ID to energy sensors (#70378) 2022-04-26 23:14:16 -07:00
Shai Ungar 3f5027834b
Sabnzbd config flow (#68138)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-04-26 23:09:10 -07:00
Robert Hillis b1a6521abd
Add config flow to steam_online integration (#67261)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-04-26 23:07:21 -07:00
G Johansson 6adcf500b3
Add trafikverket_ferry integration (#70443) 2022-04-26 19:40:53 -10:00
Allen Porter 5e49457c65
Add camera/stream platform diagnostics, exercised with nest (#69780) 2022-04-26 22:33:04 -07:00
Jeef 4a6ea5afd8
Address late IntelliFire review (#70461)
* Addressing MartinHjelmare comments in closed PR

* updated tests accordingly

* Update tests/components/intellifire/test_config_flow.py

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

* Update tests/components/intellifire/test_config_flow.py

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

* updated error message

* addressing late review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-27 07:07:30 +02:00
Paulus Schoutsen 56000c0378
Clean up when TTS base URL is applied (#70835) 2022-04-27 02:18:29 +02:00
Robert Hillis 09a7116efc
Add config flow to tautulli integration (#57450) 2022-04-27 01:37:13 +02:00
Álvaro Fernández Rojas 8a2b20faf0
Add new QNAP QSW integration (#70151)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-26 13:10:23 -10:00
J. Nick Koston 195811843b
Remove get_state and get_states history api calls (#70830) 2022-04-26 16:05:43 -07:00
Marc Mueller 348089efcf
Remove deprecated yaml schema [fritzbox_callmonitor] (#70829) 2022-04-27 00:32:18 +02:00
Thomas Dietrich 9fdec407e0
Provide statistics device_class based on source entity and characteristic (#69710) 2022-04-26 12:12:47 -10:00
hesselonline c973e5d0d2
Add Switch platform to Wallbox (#70584)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-04-26 23:27:43 +02:00
Paulus Schoutsen 9303e35a7d
tts.say to use media source URLs (#70382) 2022-04-26 13:49:32 -07:00
Erik Montnemery f96c1136b0
Bump pytest-socket to 0.5.1 (#69624)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-26 10:42:37 -10:00
Erik Montnemery ce302f4540
Play first item in m3u and pls playlists when casting (#70047)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-26 13:16:37 -07:00
J. Nick Koston 6ce768465f
Improve purge performance for non-sqlite databases (#70576) 2022-04-26 13:11:57 -07:00
J. Nick Koston 1c4a785fb3
Prevent autoflush from happening during attrs lookup (#70768) 2022-04-26 13:04:58 -07:00
J. Nick Koston f073f17040
Refactor tracking of the recorder run history (#70456)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-26 09:59:43 -10:00
Marc Mueller 997fb7a11c
Add fritzbox_callmonitor type hints (2) (#70293) 2022-04-26 20:26:42 +02:00
Paulus Schoutsen 4a53121b58
Test that mobile app requires empty object for encrypted webhooks without data (#70718) 2022-04-26 19:30:08 +02:00
epenet abdf5bb86a
Use light enums in tasmota (#70788) 2022-04-26 19:04:12 +02:00
epenet bd87ae79ae
Adjust climate constants in coolmaster config flow (#70764) 2022-04-26 18:57:45 +02:00
Erik Montnemery 3016b5fbfc
Use recorder fixtures and helpers in tests (#70773) 2022-04-26 06:08:00 -10:00
Raman Gupta 24b090a038
Create zwave_js.invoke_cc_api service (#70466) 2022-04-26 11:30:49 -04:00
J. Nick Koston 89e3a48751
Use database executor in migration test (#70774) 2022-04-26 07:42:28 -07:00
epenet 7d2363ad22
Use light enums in tests (#70801) 2022-04-26 16:32:00 +02:00
Franck Nijhof cad2ba4d44
Detect duplicate script objects in config validation (#70368) 2022-04-26 15:33:43 +02:00
epenet 5d8b35face
Use light enums in yeelight (#70797) 2022-04-26 14:55:44 +02:00
epenet fe0120b65a
Use light enums in zwave_js (#70791) 2022-04-26 15:31:25 +03:00
epenet 67b411d2b2
Use light enums in lcn (#70796) 2022-04-26 15:30:34 +03:00
epenet 24b4690e5d
Use climate enums in zwave_js (#70757) 2022-04-26 12:23:48 +02:00
Robert Svensson f7d9797c62
Streamline setup of deCONZ scene platform (#70700) 2022-04-26 11:42:56 +02:00
Álvaro Fernández Rojas add7103d55
Use Airzone WebServer MAC address as unique ID (#70287)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-25 22:52:55 -10:00
epenet 8745401af5
Use climate enums in zha (#70754) 2022-04-26 10:09:13 +02:00
epenet 9f428f268c
Use climate enums in atag (#70623) 2022-04-26 09:59:31 +02:00
epenet 4827fe5280
Use climate enums in homematicip_cloud (#70668) 2022-04-26 09:41:02 +02:00
Marc Mueller eeecdf213d
Use StrEnum [fritzbox_callmonitor] (#70289) 2022-04-26 09:40:08 +02:00
epenet a7bb74e151
Use climate enums in melissa (#70690) 2022-04-26 09:30:46 +02:00
epenet 2dbd2575d8
Use climate enums in whirlpool (#70752) 2022-04-25 21:27:28 -10:00
epenet 10905f6074
Use climate enums in vera (#70750) 2022-04-25 21:25:24 -10:00
epenet 65af9cb1a0
Use climate enums in airzone (#70624) 2022-04-25 21:21:44 -10:00
epenet 1bc9744be3
Use climate enums in advantage_air (#70621) 2022-04-25 21:21:17 -10:00
epenet 7fb0691a8b
Use climate enums in balboa (#70626) 2022-04-25 21:19:52 -10:00
epenet 073833fcec
Use climate enums in netatmo (#70724) 2022-04-26 09:18:09 +02:00
epenet 09393d6f64
Use climate enums in modbus (#70693) 2022-04-25 21:18:00 -10:00
epenet 20f7e2f4d2
Use climate enums in venstar (#70749) 2022-04-25 21:17:19 -10:00
epenet 98d757b2b2
Use climate enums in smartthings (#70737) 2022-04-26 09:12:54 +02:00
epenet c44391f368
Use climate enums in smarttub (#70738) 2022-04-26 09:10:48 +02:00
epenet 7fb8bb7769
Use climate enums in nexia (#70725) 2022-04-25 21:06:33 -10:00
epenet 896b616687
Use climate enums in plugwise (#70729) 2022-04-26 09:03:23 +02:00
epenet 62c8687a86
Use climate enums in homekit_controller (#70663) 2022-04-25 18:27:58 -10:00
Álvaro Fernández Rojas 8d71595f31
Improve and fix Airzone config flow (#70474) 2022-04-25 18:25:11 -10:00
jjlawren 5bcc83f6f2
Remove "sonos" prefix for Sonos switch entity_ids (#70698) 2022-04-25 16:01:54 -10:00
J. Nick Koston 1d2c949c51
Convert history_stats to use a coordinator (#70388)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-04-25 15:20:06 -07:00
Paulus Schoutsen 87dceaf238
Hue config flow to guard ipv6 (#70703)
* Hue config flow to guard ipv6

* Use helper
2022-04-25 10:52:57 -07:00
Paulus Schoutsen 5317bf02e6
Fix hidden default (#70699) 2022-04-25 10:10:42 -07:00
J. Nick Koston 5224cf5968
Update async_upnp_client to 0.29.0 (#70604) 2022-04-25 09:53:35 -07:00
Tom Harris 6363c67398
Insteon HUB DHCP discovery (#70685)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-04-25 09:01:56 -07:00
Erik Montnemery 28ba572d9d
Only apply color from light profile if no color specified (#70640) 2022-04-25 07:56:07 -07:00
Marc Mueller 9b9b553521
Disable no-self-use [pylint] (#70641)
* Disable no-self-use

* Remove disable comments
2022-04-25 07:41:01 -07:00
epenet 9dcbc8469e
Use climate enums in deconz (#70630)
* Use climate enums in deconz

* Adjust tests

* Adjust type hint

* Update climate.py

* Update climate.py

* Update climate.py

* Don't edit files in Github!
2022-04-25 16:18:44 +02:00
David F. Mulcahey ea9c8b15de
Coerce int in Flo set sleep mode service (#70592)
* Coerce int in Flo set sleep mode service

* add test to ensure exception thrown for bad value
2022-04-25 09:18:09 -04:00
epenet 069dd567f7
Use climate enums in knx (#70676) 2022-04-25 14:57:31 +02:00
Erik Montnemery 23d9e135bc
Allow 'turning on' cast groups (#70642)
* Allow 'turning on' cast groups

* Adjust test
2022-04-25 14:41:24 +02:00
Erik Montnemery d045e8678d
Use recorder test fixtures in tests (#70652) 2022-04-25 14:23:52 +02:00
Martin Hjelmare 09b4b7eb37
Remove hass.helpers from config_entries (#70660) 2022-04-25 14:21:03 +02:00
epenet d52234a57a
Use climate enums in fritzbox (#70650)
* Use climate enums in fritzbox

* Adjust tests

* Update homeassistant/components/fritzbox/climate.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-25 13:33:51 +02:00
epenet 0fd2a7dc83
Use climate enums in freedompro (#70651)
* Use climate enums in freedompro

* Adjust tests

* Adjust type hints
2022-04-25 13:33:19 +02:00
epenet e51ed7a11b
Use climate enums in blebox (#70628)
* Use climate enums in blebox

* Adjust tests
2022-04-25 13:17:46 +02:00
Erik Montnemery 28ebab9c5a
Simplify waiting for recorder in tests (#70647) 2022-04-25 12:04:47 +02:00
epenet a8a7359c6f
Use VacuumEntityFeature in mqtt (#70570)
* Use VacuumEntityFeature in mqtt

* Fix tests
2022-04-25 11:34:06 +02:00
epenet 23c5bd9779
Use climate enums in gree (#70655)
* Use climate enums in gree

* Adjust tests
2022-04-25 10:58:39 +02:00
epenet b81f8e75ee
Use climate enums in generic_thermostat (#70656)
* Use climate enums in generic_thermostat

* Adjust tests
2022-04-25 10:58:05 +02:00
Robert Svensson 8eae572c93
Mark type "On/Off Switch" as a deCONZ switch entity (#70598)
Convert entity types of light platform to switch platform
2022-04-25 08:25:38 +02:00
J. Nick Koston 9f11063724
Fix state_changes_during_period bakery caching for limit and descending (#70610) 2022-04-24 21:47:21 -07:00
David F. Mulcahey 31eae0980b
Add state class to Flo sensor entities (#70591) 2022-04-24 12:48:49 -10:00
Johann Vanackere e2bbdb26be
Daikin AC : Round to nearest half degree (#70446) (#70452) 2022-04-24 14:47:09 -07:00
Robert Svensson b15387ffb9
Remove migration of entities from deCONZ switch to siren platform (#70600) 2022-04-24 23:32:13 +02:00
Allen Porter bab9f4ba76
Fix nest error handling and bug in tests for media fetches (#70596) 2022-04-24 10:17:59 -10:00
Allen Porter dc7e3a6df6
Fix boundary case in calednar trigger (#70467)
Update calendar trigger scan logic to add a one second boundary due to the
exclusive search. Add a test that reproduced the issue.
2022-04-24 12:52:17 -07:00