Commit Graph

37034 Commits (9a150c2234507be2969483b2c4721f5dc7667dee)

Author SHA1 Message Date
Erik Montnemery c44d7205cf
Rename HelperFlowStep to HelperFlowFormStep (#68583) 2022-03-23 14:43:11 -07:00
jjlawren 29a43cef0b
Add cooldown timer before Sonos resubscriptions (#68521) 2022-03-23 14:20:20 -07:00
epenet 9ba0475644
Use callback to get app_list in SamsungTV (#68506)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-23 11:12:12 -10:00
Raman Gupta 8293430e25
Redact user codes from zwave_js diagnostics (#68515)
* Redact user codes from zwave_js diagnostics

* simplify test

* Remove unused logic

* revert change and make all inputs to ZwaveValueID optional

* revert change and make all inputs to ZwaveValueID optional

* Remove unused diagnostics data from fixture and test location redaction

* Add empty ZwaveValueID check

* Improve coverage

* Simplify post_init check

* Use dataclasses.astuple for checks instead
2022-03-23 21:13:27 +01:00
Marcel van der Veldt ccd8c7d5f8
Hue aggregated control for grouped lights (#68566) 2022-03-23 13:06:10 -07:00
J. Nick Koston d2dc9e6cbe
Filter IPv6 addresses from AppleTV zeroconf discovery (#68530) 2022-03-23 20:38:34 +01:00
Marcel van der Veldt 871b7a4a96
Bump aiohue to version 4.4.1 (#68579) 2022-03-23 21:18:06 +02:00
starkillerOG 83983bc875
Motion request update till stop (#68580)
* update untill stop

* fixes

* fix spelling
2022-03-23 20:59:53 +02:00
hesselonline de3d402930
Add Lock platform to wallbox (#68414)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-03-23 19:50:28 +01:00
JonasClever b4bb35d4de
Fronius - change the unit of capacity from Ah to Wh (#68543) 2022-03-23 20:45:54 +02:00
Robert Hillis bcfd9eeff2
Remove deprecated yaml config from Awair (#68572) 2022-03-23 20:37:15 +02:00
epenet df6cc94b25
Cleanup SamsungTV following dependency bump (#68562)
* send_command -> send_commands

* Remove TODO

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-23 20:35:58 +02:00
starkillerOG c3f0bd45a4
Bump motionblinds to 0.6.2 (#68570) 2022-03-23 20:34:22 +02:00
Erik Montnemery a50bac5cc2
Make initial group config flow step a menu (#68565) 2022-03-23 08:34:44 -07:00
Erik Montnemery d3809e4a09
Update group strings (#68571) 2022-03-23 15:36:50 +01:00
Marcel van der Veldt 4fd0ed2474
Bump aiohue to 4.4.0 (#68556) 2022-03-23 13:03:14 +01:00
ollo69 790cab2f95
Remove useless async_setup from AndroidTV (#68561) 2022-03-23 12:50:32 +01:00
Erik Montnemery dc0c3a4d2d
Exclude hidden entities from google_assistant (#68554) 2022-03-23 12:46:53 +01:00
Erik Montnemery ff7d5c92d5
Exclude hidden entities from cloud (#68557) 2022-03-23 12:42:45 +01:00
Erik Montnemery dc8e87a6f7
Exclude hidden entities from alexa (#68555) 2022-03-23 12:40:28 +01:00
Martin Hjelmare 04843a975e
Improve reload helper typing (#68558) 2022-03-23 12:10:42 +01:00
Franck Nijhof 44d3a7e459
Adjust backup type of Update entity (#68553) 2022-03-23 11:20:04 +01:00
Erik Montnemery 1c57e65cea
Exclude hidden entities from homekit (#68552) 2022-03-23 10:32:51 +01:00
J. Nick Koston 49bc572d6d
Fix tplink effect not being restored when turning back on (#68533)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-23 10:01:20 +01:00
Klaas Schoute 0c45241d43
Add inverter size to Forecast.Solar (#68263) 2022-03-23 08:50:30 +01:00
epenet 11cdc3706c
Bump samsungtvws to 2.5.0 (#68542)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-22 21:29:00 -10:00
J. Nick Koston 08d6a3d9d4
Cache newly written state attribute ids (#68355) 2022-03-22 21:21:56 -10:00
J. Nick Koston 7deeb92485
Switch sqlalchemy execute to use .all() instead of list() on the iterator (#68540) 2022-03-22 19:24:21 -10:00
Marcel van der Veldt dd1d7fdbab
Simplify Hue error handling a bit (#68529) 2022-03-22 21:59:06 -07:00
Marcel van der Veldt 7381c2114f
Remove color temperature workaround in Hue integration (#68531) 2022-03-22 21:57:04 -07:00
Robert Hillis e1ae940a34
Add config flow to deluge (#58789) 2022-03-22 21:01:24 -07:00
Raman Gupta 45a80f182d
Dump entities in zwave_js device diagnostics (#68536) 2022-03-22 20:50:02 -07:00
Robert Hillis a11a5366be
Remove deprecated yaml config from androidtv (#68339) 2022-03-22 20:45:35 -07:00
Zack Barett b2d7fe15bb
Bump Frontend to 20220322.0 (#68535) 2022-03-22 17:48:21 -07:00
Erik Montnemery b5c5da96ac
Add WS API to adjust incorrect energy statistics (#65147)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-22 15:18:30 -07:00
Keilin Bickar c5a3ba4065
Add support for general API exception in Sense integration (#68517) 2022-03-22 12:14:01 -10:00
J. Nick Koston b9526b05ee
Disable extra emonitor sensors by default (#68519) 2022-03-22 11:05:30 -10:00
Inovelli 78a41022ad
Updating to allow for Button Press event logs for Inovelli devices (#68277)
Co-authored-by: codyhackw <49957005+codyhackw@users.noreply.github.com>
2022-03-22 19:59:57 +01:00
J. Nick Koston c223397098
Remove unneeded attributes selection from history_states api calls (#68409) 2022-03-22 19:49:07 +01:00
J. Nick Koston c5f3f9e924
Convert plant to use history api for database access (#68410) 2022-03-22 19:34:46 +01:00
Erik Montnemery eb068bc850
Fix targeting all or none entities in service calls (#68513)
* Fix targeting all or none entities in service calls

* Add test
2022-03-22 19:45:27 +02:00
Ben Felton 43772b3fa9
Add World Message/MOTD support for MinecraftServer Integration (#66297) 2022-03-22 18:26:23 +01:00
Warwick Davison 0c6a6c360b
Fix tuya light 2 channel dimmer module (#68109)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-22 18:24:57 +01:00
Jeff Rescignano 0720b0f891
Add all option to light group (#68447)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-22 16:09:18 +01:00
Marc Mueller 6a66b4dbff
Add zha typing [api] (3) (#68353) 2022-03-22 10:15:39 -04:00
Marc Mueller df05e8b950
Add zha typing [core.channels] (#68377) 2022-03-22 10:14:35 -04:00
Marc Mueller bdc92271f2
Add zha typing [core.gateway] (1) (#68397)
* Add zha typing [core.gateway] (1)

* Add temporary type ignores

* Fix pylint
2022-03-22 10:13:09 -04:00
J. Nick Koston 94cd656670
Use new internal_state property in tplink diagnostics (#68497) 2022-03-22 14:58:16 +01:00
Joakim Sørensen 0802b64d95
Add boolean for certificate usage to analytics (#68254)
* Add boolean for certificate usage to analytics

* Mock hass.http
2022-03-22 14:49:43 +01:00
Franck Nijhof 1c2b8ee606
Add typing to Alert integration (#68365) 2022-03-22 14:48:36 +01:00
Raman Gupta 174f0a5695
Remove deprecated config option for eight_sleep (#68495) 2022-03-22 13:37:26 +01:00
Robert Hillis dfc689f49a
Deprecate Dune HD YAML configuration (#68381)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-22 13:27:54 +01:00
Franck Nijhof 5ed5bccfe8
Clarify what the Tailscale integration does not (#68499) 2022-03-22 13:04:42 +01:00
Jan Bouwhuis 5afe8fd2db
Revert "Add MQTT notify platform (#64728)" (#68505)
This reverts commit e574a3ef1d.
2022-03-22 12:51:24 +01:00
Joakim Sørensen d17f8e9ed6
Add update platform to the Supervisor integration (#68475) 2022-03-22 12:21:12 +01:00
Erik Montnemery 1b955970f8
Allow hiding and unhiding group members (#68192) 2022-03-22 12:14:34 +01:00
Erik Montnemery b5d2c6e43a
Add config flow for threshold binary sensor (#68238)
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 (#68500)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-22 00:11:41 -10:00
Martin Hjelmare 9180243a54
Deprecate mysensors config YAML (#68504) 2022-03-22 10:40:48 +01:00
J. Nick Koston 06ebb0b8b3
Add support for effects to tplink light strips (#65166) 2022-03-21 20:20:40 -10:00
J. Nick Koston cb011570e8
Seperate emonitor extra_state_attributes into their own sensors (#68479) 2022-03-21 21:20:17 -07:00
Pawel bcb8c7ec3c
Add API endpoint get_statistics_metadata (#68471)
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 (#68148) 2022-03-21 20:40:33 -07:00
IceBotYT a43505a0a3
Add PECO power outage counter integration (#65194)
* 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
jjlawren 653305b998
Support multiple Plex servers in media browser (#68321) 2022-03-21 15:48:44 -07:00
J. Nick Koston 16655c4ccc
Fix tplink color temp conversion (#68484) 2022-03-21 12:41:15 -10:00
Tom 574f4710aa
Add select platform to Plugwise (#68303)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-21 21:13:03 +01:00
J. Nick Koston 1f135a20a0
Remove extra attributes from pvoutput sensors (#68481) 2022-03-21 20:54:57 +01:00
Mike Fugate d065475aac
Bump asyncsleepiq to 1.2.0 (#68438)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-21 08:27:51 -10:00
Franck Nijhof 28d3117a88
Track number of persons in a Zone (#68473) 2022-03-21 10:41:55 -07:00
Franck Nijhof c56b77f2b3
Move WLED update title to class attribute (#68470) 2022-03-21 15:51:46 +01:00
Marc Mueller 1072aff017
Update coordinator typing (1) [a-c] (#68442) 2022-03-21 15:49:39 +01:00
Franck Nijhof 40d4495ed0
Add update platform to WLED (#68454)
* 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
Marc Mueller 129c9e42f1
Update coordinator typing (7) [w-z] (#68467) 2022-03-21 15:29:11 +01:00
Marc Mueller 539a469a8b
Update coordinator typing (5) [r-s] (#68465) 2022-03-21 15:24:05 +01:00
Marc Mueller b664bcd007
Update coordinator typing (4) [o-p] (#68464) 2022-03-21 14:45:24 +01:00
Franck Nijhof 2424564d2c
Change update default entity category based on features (#68455) 2022-03-21 14:35:40 +01:00
Marc Mueller add741d789
Update coordinator typing (6) [t-v] (#68466) 2022-03-21 14:20:35 +01:00
Marc Mueller 0d29b7cbb3
Update coordinator typing (3) [g-n] (#68463) 2022-03-21 14:14:46 +01:00
Marc Mueller 354fc4c1ae
Update coordinator typing (2) [e-f] (#68462) 2022-03-21 14:13:16 +01:00
Franck Nijhof 073fb40b79
Add update entity platform (#68248)
Co-authored-by: Glenn Waters <glenn@watrs.ca>
2022-03-21 11:02:48 +01:00
Marc Mueller 830cc278d3
Improve `CoordinatorEntity` typing (#68441) 2022-03-21 10:22:30 +01:00
Paulus Schoutsen 3320606a1b
Hue handle HTTP errors (#68396) 2022-03-21 10:16:19 +01:00
Diogo Gomes ba814af701
Adopt SelectEntity in Utility Meter (#55690)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-21 08:21:26 +01:00
Paulus Schoutsen 3213091b8d
Add integration type (#68349) 2022-03-20 20:38:13 -07:00
Paulus Schoutsen 929df2bc29
Improve error handling process_play_media_url (#68322) 2022-03-20 20:25:15 -07:00
Jeef ed94cc3673
Intellifire DHCP Auto Discovery (#67053)
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 (#68394) 2022-03-20 16:01:58 -07:00
Diogo Gomes 0cbc29caca
Add unique_id through YAML to the integration component (#68435) 2022-03-20 22:48:11 +01:00
J. Nick Koston 3c10ac308d
Fix migration to schema v25 with Postgresql (#68426) 2022-03-20 21:49:11 +01:00
Franck Nijhof 1d35b91a14
Add calendar platform to Twente Milieu (#68190)
* 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
Aaron Bach 314154d5c5
Bump aioridwell to 2022.03.0 (#68423) 2022-03-20 19:13:52 +01:00
Baptiste Candellier a136cf7086
Remove SmartHab integration (#67874) 2022-03-20 19:00:16 +01:00
G Johansson 89cfb4e86f
Add yale_smart_alarm to strict typing (#68422)
* Add yale_smart_alarm to strict typing

* Type as Any
2022-03-20 19:50:37 +02:00
Aaron Bach 1013f77013
Bump simplisafe-python to 2022.03.0 (#68424) 2022-03-20 18:19:32 +01:00
Poltorak Serguei 972afc5cea
Add Cover to Z-Wave.Me integration (#68233)
* Cover integration

* isort fix

* Update homeassistant/components/zwave_me/cover.py

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

* Update cover.py

* Update cover.py

* Apply suggestions from code review

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

* coveragerc for cover

* Fix position range

* Clean up

Co-authored-by: Dmitry Vlasov <kerbalspacema@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 14:50:16 +01:00
Jesse Hills 994ea04c85
Add device_id into ESPHome event data (#68408) 2022-03-20 13:14:07 +01:00
J. Nick Koston 6ffef8373b
Add shutdown guard to Recorder pool in case there is no connection (#68407) 2022-03-20 01:28:44 -10:00
J. Nick Koston 3150915cb7
Convert unindexed domain queries to entity_id queries (#68404) 2022-03-20 01:28:17 -10:00
J. Nick Koston 816695cc96
Avoid selecting attributes in the history api when `no_attributes` is passed (#68352) 2022-03-19 23:47:22 -10:00
Garrett a0a96dab05
Add door locks to Subaru integration (#52852)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-19 23:41:53 -10:00
James Hodgkinson dbeec1f7da
Update pyaussiebb to 0.0.14 (#68293) 2022-03-20 07:35:34 +01:00
J. Nick Koston 0c0df07c52
Avoid hashing attributes when they are already in the cache (#68395) 2022-03-19 23:33:37 -07:00
Paulus Schoutsen a91888a7f8
Don't use hass.helpers (#68393) 2022-03-19 11:39:32 -10:00
Paulus Schoutsen ead81edcec
Handle Hue discovery errors (#68392) 2022-03-19 14:28:16 -07:00
J. Nick Koston 7ee647cc78
Fix FOREIGN KEY constraint failed when removing state_attributes (#68364) 2022-03-19 14:21:28 -07:00
J. Nick Koston fed447a3f4
Filter IPv6 addreses from enphase_envoy discovery (#68362) 2022-03-19 13:40:00 -07:00
Felipe Martins Diel 0df88b80e7
Bump broadlink to 0.18.1 (#68391) 2022-03-19 10:34:30 -10:00
Marcel van der Veldt 8187541d41
Hue integration: update errors that should be supressed (#68337) 2022-03-19 13:27:04 -07:00
Allen Porter 5027e1bcff
Mark stream available on idle timeout (#68380)
Mark stream as available on idle timeout so that the frontend can
still interact with it. In particular, the Frontend won't interact
with camera objects that are not available e.g. from picture glance
card.

Issue #67922
2022-03-19 10:24:32 -07:00
Raman Gupta 8220817d47
Switch zwave_js redact keys from tuple to set (#68375) 2022-03-19 16:26:44 +01:00
Franck Nijhof cca0ecc5da
Update sentry-sdk to 1.5.8 (#68367) 2022-03-19 16:18:35 +02:00
Marc Mueller 126320529e
Add zha typing [core.discovery] (1) (#68359)
* Add zha typing [core.discovery] (1)

* Fix circular import
2022-03-19 07:37:04 -04:00
Scott Bradshaw b160931603
Bump python-smarttub dependency to 0.0.30 (#68356) 2022-03-19 10:45:18 +01:00
Raman Gupta 4cd4fbefbf
Add new tomorrow.io integration to replace Climacell (#68156)
* Add new tomorrow.io integration to replace Climacell - Part 1/3 (#57121)

* 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 (#57124)

* 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 (#63527)

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

* Switch to DeviceInfo

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

* 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 #60454 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
Raman Gupta 4578de68e7
Redact data from zwave_js diagnostics (#68348)
* Redact home ID and location from zwave_js diagnostics

* Switch to set
2022-03-19 02:46:01 -04:00
Michael Kowalchuk e0b577f8bd
Add zwave_js fan preset modes and enable them for Inovelli LZW36 (#60947)
* 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
Marc Mueller f9dcf5afa2
Add zha typing [core.group] (#68350) 2022-03-18 22:08:19 -04:00
Franck Nijhof 171c58fed2
Rename Lovelace to Dashboards (#68346) 2022-03-18 23:29:57 +01:00
J. Nick Koston 4cc8998ea7
Make powerwall attribute sensors their own sensors (#68345) 2022-03-18 21:23:26 +01:00
Robert Hillis 619c1f014b
Remove deprecated yaml config from trafikverket_weatherstation (#68336) 2022-03-18 19:33:01 +01:00
Marc Mueller ffcc02e93d
Add zha typing [api] (2) (#68335) 2022-03-18 19:06:44 +01:00
jjlawren dbb79e2937
Add support for Sonos subwoofer gain controls (#68334) 2022-03-18 10:12:10 -07:00
J. Nick Koston 9864090e0b
Cache parsing attr in LazyState (#68232) 2022-03-18 07:44:37 -07:00
Allen Porter 41a032e3e3
Add diagnostics to stream's Stream objects (#68020)
* 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 (#67221)
* 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 (#65394)
* 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 (#68268) 2022-03-18 12:14:38 +01:00
J. Nick Koston b284eddc63
Fix statistics doing I/O in the event loop (#68315) 2022-03-18 00:49:11 -10:00
J. Nick Koston 9215702388
Separate attrs into another table (reduces database size) (#68224) 2022-03-18 00:23:13 -10:00
Erik Montnemery d7145095ef
Tweak selectors (#68267)
* 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 (#68295)
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 (#68105)
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 (#68288) 2022-03-18 09:52:17 +01:00
Paulus Schoutsen ad1e43e083
Add support for variables on trigger (#68275) 2022-03-18 09:25:22 +01:00
Marc Mueller ad84a02b8e
Add zha typing [api] (1) (#68220) 2022-03-18 09:23:52 +01:00
jjlawren 7b38f81040
Bump plexapi to 4.10.1 (#68313) 2022-03-17 22:36:58 -07:00
J. Nick Koston 95f20500ca
Commit any pending changes before running non-EventTasks in the recorder (#68287) 2022-03-17 21:33:22 -07:00
Zack Barett 712c9d4a4f
Bump frontend to 20220317.0 (#68314) 2022-03-17 16:12:31 -07:00
Steven Looman f006cffac6
Bump async-upnp-client to 0.27.0 (#68310) 2022-03-17 12:32:46 -10:00
jjlawren b34da1294c
Improve Plex media search failure feedback (#67493) 2022-03-17 13:57:22 -07:00
jjlawren f75d621888
Normalize enqueuing Plex media on Sonos (#68132) 2022-03-17 13:52:59 -07:00
Malte Franken a8dae97917
Migrate geo_json_events to async library (#68236)
* use async integration library

* migrating to async library

* migrating tests to async library

* renamed method and fixed comment

* removed callback annotation

* use async dispatcher
2022-03-17 20:40:43 +01:00
epenet 0adc7042dc
Make new_token_callback more generic in SamsungTV (#67990)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-17 09:24:00 -10:00
Avi Miller 9ea73e0d90
Skip unsupported LIFX Switches during discovery (#67726)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-17 19:13:08 +01:00
Marc Mueller 8f69d31322
Make TypeVars private (3) (#68207) 2022-03-17 19:11:14 +01:00
Marc Mueller eae0c75620
Make TypeVars private (2) (#68206) 2022-03-17 19:09:55 +01:00
Marc Mueller be7ef6115c
Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
gigatexel a9c383a1e5
Correct naming for electrical energy meter (#68290) 2022-03-17 18:50:18 +01:00
Joakim Plate 6069d26800
Rename root media folder to integration name (#68213) 2022-03-17 11:13:46 +01:00
Joakim Plate 4e21757b75
Rename root node to integration name (#68214) 2022-03-17 11:13:03 +01:00
Myles Eftos 38d8332e92
Add amberelectric price descriptors (#67981)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-17 10:15:47 +01:00
wchan-ranelagh fc693001a1
Change default timeout for operations in SNMP component (#68230) 2022-03-17 10:10:46 +01:00
Paulus Schoutsen aabfa08834
Add if subscription is active to cloud status (#68266) 2022-03-17 09:51:07 +01:00
epenet d021222d6d
Bump renault-api to 0.1.10 (#68260)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-17 09:51:03 +02:00
epenet d6f5f0c794
Bump samsungtvws to 2.4.0 (#68225)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-16 20:44:14 -10:00
Zack Barett 3ecc914f29
20220316.0 (#68276) 2022-03-16 16:40:24 -07:00
Raman Gupta 15d9233c77
Bump PyNaCl to 1.5.0 (#68226) 2022-03-16 23:30:04 +01:00
Paulus Schoutsen f6af93ae35
Add support for menu step (#68203) 2022-03-16 14:14:50 -07:00
d6e aa57907c18
Improve logging for Discord integration (#68160) 2022-03-16 21:16:38 +01:00
jjlawren d8c966fd0a
Fix Spotify podcasts & Plex `allow_multiple` on Sonos (#68131)
* Bump soco to 0.27.0

* Bump soco to 0.27.1
2022-03-16 17:35:31 +01:00
Hans Oischinger 2c8bf006eb
Fix precision of vicare target & current temperature (#66456) 2022-03-16 13:14:11 +01:00
Álvaro Fernández Rojas 62c4fed549
Update aioairzone to v0.1.0 (#68194) 2022-03-16 10:44:06 +01:00
Paulus Schoutsen 984e30075b
Validate TTS base url (#68212)
* Validate TTS base url

* Update tests/components/tts/test_init.py

Co-authored-by: Joakim Plate <elupus@ecce.se>

Co-authored-by: Joakim Plate <elupus@ecce.se>
2022-03-16 10:18:55 +01:00
Francois Chagnon 21aa07e3e5
Add Z-Wave thermostat fan entity (#65865)
* Add Z-Wave thermostat fan entity

* Fix failing test, increase number of entities to 27

* Add tests to improve coverage

* Take back unrelated changes to climate.py

* Clean up guard clauses, use info.primary_value, and make entity disabled by default

* Fix tests

* Add more tests for code coverage

* Remove unused const

* Remove speed parameter from overridden method since it was removed from entity

* Address PR comments
2022-03-15 22:17:51 -04:00
J. Nick Koston 4b963c2ac0
Add diagnostics support to nexia (#68215) 2022-03-15 15:55:08 -10:00
Jeef 484f723875
IntelliFire Diagnostic Error Sensor (#67403)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-15 12:52:19 -10:00
Joakim Sørensen 6f61ed8799
Add backup platform support (#68182) 2022-03-15 14:46:02 -07:00
Antonio Larrosa 2aaeb1fa99
Fix finding matrix room that is already joined (#67967)
After some debugging, it seems room.canonical_alias contains the
room alias that matches the room_id_or_alias value but is not
contained in room.aliases (which is empty). As a result, the
matrix component thought the room wasn't alread joined, joins
again, and this replaces the previous room which had the listener.
This resulted in the component callback not being called for new
messages in the room.

This fixes #66372
2022-03-15 22:33:59 +01:00
J. Nick Koston 65c670c2c7
Add diagnostics to august (#68157) 2022-03-15 19:05:56 +01:00
Franck Nijhof ed24638201
Update SMA config entry when unique ID already configured (#68179) 2022-03-15 19:51:33 +02:00
Erik Montnemery 46f27fdefd
Don't prevent automations from triggering themselves (#68178) 2022-03-15 18:48:54 +01:00
Robert Hillis 0c4efae31f
Clean up twitch (#67595) 2022-03-15 18:33:16 +01:00
leranp 668e0c19a2
Bump gTTS to 2.2.4 (#68180)
* Update gTTS to 2.2.4

* ADD Hebrew language

* Update requirements_all.txt

* Update requirements_test_all.txt

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-03-15 19:23:39 +02:00
Franck Nijhof c5a8e9d59c
Update opensensemap-api to 0.2.0 (#68193) 2022-03-15 19:14:07 +02:00
Erik Montnemery 34eb4aa2d0
Exclude hidden entities from targets (#68149) 2022-03-15 08:42:22 -07:00
Erik Montnemery 8ea31cea3a
Fix deadlock when stopping queued script (#68175) 2022-03-15 08:29:04 -07:00
Marc Mueller cdd23abea7
Add missing await [velbus] (#68153) 2022-03-15 15:57:36 +01:00
Marc Mueller aabf46b1b3
Fix point by adding authlib constraint (#68176)
* Fix point by pinning authlib

* Use constraint
2022-03-15 15:56:08 +01:00
Marc Mueller db4b69663f
Fix met TypeVar usage (#68152)
* Fix met TypeVar usage

* Change format_condition
2022-03-15 15:53:40 +01:00
Erik Montnemery 1a27025793
Prevent spawning script runs when shutting down (#68170) 2022-03-15 12:46:58 +01:00
Franck Nijhof f7cb10e2f5
Update twentemilieu to 0.6.0 (#68171) 2022-03-15 12:05:15 +01:00
Numa Perez fa1394ff47
Fix lyric climate (#67018)
* Fixed the issues related to auto mode

I was having the same issues as described in #63403, specifically, the error stating that Mode 7 is not valid, only Heat, Cool, Off when trying to do anything while the thermostat is set to Auto. This error originates with the way the Lyric API handles the modes. Basically, when one queries the changeableValues dict, you get a mode=Auto, as well as a heatCoolMode, which is set to either Heat, Cool, Off. Per the documentation, heatCoolMode contains the "heat cool mode when system switch is in Auto mode". It would make sense that when changing the thermostat settings, mode=Auto should be valid, but it's not. The way the API understands that the mode should be set to Auto when changing the thermostat settings is by setting the autoChangeoverActive variable to true, not the mode itself. This require changes in the async_set_hvac_mode, async_set_temperature, and async_set_preset_mode functions. Related to this issue, I got rid of the references to hasDualSetpointStatus, as it seems that it always remains false in the API, even when the mode is set to auto, so again, the key variable for this is autoChangeoverActive.

While I was working on this I also noticed another issue. The support flag SUPPORT_TARGET_TEMPERATURE_RANGE had not been included, which did not allow for the temperature range to be available, thus invalidating the target_temperature_low and target_temperature_high functions. I added this flag and sorted out which set point (heat vs cool) should be called for each of them so things work as expected in Lovelace. I have tested all of these functionalities and they all work great on my end, so I thought I'd share.

* Update climate.py

* Update climate.py

Fixed two additional issues: 1) When the system is turned off from Auto, the heatCoolMode variable becomes 'Off', so when you try to restart the system back to Auto, nothing happens. 2) I now prevent the async_set_temperature function from being called with a new set point when the system is Off.
All changes tested and functional.

* Update climate.py

* Update climate.py

Return SUPPORT_PRESET_MODE flag only for LCC models (i.e. they have the "thermostatSetpointStatus" variable defined). TCC models do not support this feature

* Update climate.py

After playing with the official Honeywell API, I realized it doesn't like to received commands with missing data, i.e., it always wants to get a mode, coolSetpoint, heatSetpoint, and autoChangeoverActive variables. This was causing some random issues with changing modes, especially from coming from off, so I modified the async_set_temperature, and async_set_hvac_mode fuctions to always send all pertinent variables.

* Update climate.py

* Update climate.py

* Update climate.py

* Update climate.py

* Clean code and test everything

Alright, sorry for the multiple commits, fixing this properly took a fair bit of testing. I went ahead and cleaned up the code and made the following big picture changes: 
1) The integration now supports the Auto mode appropriately, to include the temperature range. 
2) There's a bug that actually manifests when using the native app. When the system is 'Off' and you try to turn it on to 'Auto', it will turn on briefly but will go back to 'Off' after a few seconds. When checking the web api, this appears to be related to the fact that the heatCoolMode variable seems to continue to store 'Off', even if the mode accurately displays 'Auto', and the autoChangeoverActive=True. So to overcome that inherent limitation, when the system is 'Off' and the user turns it to 'Auto', I first turn it to Heat, wait 3 seconds, and then turn it to 'Auto', which seems to work well.

* Update climate.py

* Fixed errors

* Fixed comments that were resulting in error.

* Update climate.py

* Update homeassistant/components/lyric/climate.py

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

* Update homeassistant/components/lyric/climate.py

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

* Update climate.py

I removed a blank line in 268 and another one at the end of the document. I also fixed the outdents of await commands after the _LOGGER.error calls, not sure what else may be driving the flake8 and black errors. Any guidance is much appreciated @MartinHjelmare

* Update climate.py

* Update climate.py

corrected some indents that I think were the culprit of the flake8 errors

* Update climate.py

I used VS Code to fix locate the flake8 errors. I ran black on it, so I'm hoping that will fix the last lingering black error.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-15 10:59:18 +01:00
Robert Svensson 283f4555a4
Fix deconz typing (#68143) 2022-03-15 10:51:26 +01:00
Marc Mueller 376ac1bd83
Don't import TypeVars from core modules (#68154) 2022-03-15 09:30:55 +01:00
Marc Mueller 7ab9e5cf0f
Improve sonos error decorator typing (#67199) 2022-03-15 09:24:52 +01:00
Tom 66f506557f
Prevent adding plugwise products used as secondary controllers (#68098)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-15 08:53:53 +01:00
Per Öberg 7615f138d9
Clean up code for onewire config flow (#67970)
* Change debug level of integration reload after config update to debug

* Remove extra .keys() call for dict itreation

* Remove unecessary type check

* Remove unused LOGGER reference
2022-03-15 08:26:54 +01:00
Marc Mueller ef71ab04ad
Remove unused TypeVars (#68155) 2022-03-15 08:24:13 +01:00
epenet 125ab5eb2b
Handle ConnectionClosed in SamsungTV try_connect (#68125)
* Handle ConnectionClosed in SamsungTV try_connect

* Add tests

* Add quotes around the error message

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-15 08:20:24 +01:00
Allen Porter 7876ffe9e3
Update google calendar integration with a config flow (#68010)
* Convert google calendar to config flow and async

* Call correct exchange method

* Fix async method and reduce unnecessary diffs

* Wording improvements

* Reduce unnecessary diffs

* Run load/update config from executor

* Update homeassistant/components/google/calendar.py

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

* Remove unnecessary updating of unexpected multiple config entries.

* Remove unnecessary unique_id checks

* Improve readability with comments about device code expiration

* Update homeassistant/components/google/calendar.py

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

* Update homeassistant/components/google/calendar.py

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

* Update homeassistant/components/google/api.py

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

* Add comment for when code is none on timeout

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-15 07:51:02 +01:00
Benjamin 4988c4683c
Bump volkszahler to 0.3.2 (#67958)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-15 00:33:08 +01:00
J. Nick Koston 9d6e1ab0e5
Ensure flux_led is reloaded when the title changes (#68146) 2022-03-14 22:55:52 +01:00
J. Nick Koston 59c4c75915
Ensure WiZ is reloaded on title change (#68147) 2022-03-14 22:52:27 +01:00
Paulus Schoutsen a9fd744247
Add media source support to unifiprotect (#67570) 2022-03-14 10:16:22 -10:00
Erik Montnemery 7fc0ffd5c5
Restore state of trigger based template binary sensor (#67538) 2022-03-14 12:28:55 -07:00
Paulus Schoutsen a109889f13
Add media source support to openhome (#67566) 2022-03-14 12:14:21 -07:00
Erik Montnemery 314175135f
Hide switch_as_x tracked entity (#67949)
* Hide switch_as_x tracked entity

* Hide wrapped switch during config flow

* Allow setting/getting entity disabled by via WS

* Adjust tests

* Improve test coverage

* Improve tests
2022-03-14 19:39:07 +01:00
J. Nick Koston 8a8d7741d5
Fix Magic Home devices with multiple network interfaces (#68029) 2022-03-14 19:38:54 +01:00
Gido 0e602dd390
Bump Rova to 0.3.0 (#67688) 2022-03-14 19:37:34 +01:00