Commit Graph

10891 Commits (2a99084911af7fff3fa17f8aff356d2873f6d1f8)

Author SHA1 Message Date
Keilin Bickar c5a3ba4065
Add support for general API exception in Sense integration (#68517) 2022-03-22 12:14:01 -10: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
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
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
J. Nick Koston 06ebb0b8b3
Add support for effects to tplink light strips (#65166) 2022-03-21 20:20:40 -10: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
Erik Montnemery 247af2e74f
Improve recorder setup in tests (#68333)
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 (#68321) 2022-03-21 15:48:44 -07:00
Franck Nijhof 28d3117a88
Track number of persons in a Zone (#68473) 2022-03-21 10:41:55 -07: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
Franck Nijhof 2424564d2c
Change update default entity category based on features (#68455) 2022-03-21 14:35:40 +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
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
J. Nick Koston 4f9df1fd0f
Fix logbook tests (#68443) 2022-03-20 20:34:02 -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
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
Baptiste Candellier a136cf7086
Remove SmartHab integration (#67874) 2022-03-20 19:00:16 +01: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
Erik Montnemery cf4033b1bc
Simplify time zone setting in tests (#68330)
* 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 (#68384) 2022-03-19 11:34:52 -10: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
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
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
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
jjlawren dbb79e2937
Add support for Sonos subwoofer gain controls (#68334) 2022-03-18 10:12:10 -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 9215702388
Separate attrs into another table (reduces database size) (#68224) 2022-03-18 00:23:13 -10: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
J. Nick Koston 95f20500ca
Commit any pending changes before running non-EventTasks in the recorder (#68287) 2022-03-17 21:33:22 -07:00
Dave T 490c921763
Don't access hass.data directly in generic camera test. (#68316) 2022-03-17 14:29:21 -10: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
Marc Mueller 8f69d31322
Make TypeVars private (3) (#68207) 2022-03-17 19:11:14 +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
Paulus Schoutsen aabfa08834
Add if subscription is active to cloud status (#68266) 2022-03-17 09:51:07 +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
Joakim Sørensen 6f61ed8799
Add backup platform support (#68182) 2022-03-15 14:46:02 -07:00
J. Nick Koston 65c670c2c7
Add diagnostics to august (#68157) 2022-03-15 19:05:56 +01:00
Robert Svensson 4bb52297a6
Replace hass helper calls in deCONZ device trigger tests (#68197) 2022-03-15 18:51:12 +01:00
Erik Montnemery 46f27fdefd
Don't prevent automations from triggering themselves (#68178) 2022-03-15 18:48:54 +01:00
Erik Montnemery b99934f62f
Small tweaks of group tests (#68196) 2022-03-15 18:39:18 +01:00
Erik Montnemery f026245cb4
Small tweaks of switch_as_x tests (#68195) 2022-03-15 18:34:46 +01:00
Erik Montnemery d360ac91ca
Disable recorder nightly jobs in tests (#68188) 2022-03-15 09:23:52 -07:00
Franck Nijhof f7cb10e2f5
Update twentemilieu to 0.6.0 (#68171) 2022-03-15 12:05:15 +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
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
Erik Montnemery f134219c74
Minor tweak of config entity_registry test (#68141) 2022-03-14 23:07:52 +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
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
Franck Nijhof ed6466f706
Add Lock platform to Switch as X (#68123)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-14 10:45:45 -07:00
Robert Svensson 362191a0e6
Add typing of deCONZ device_trigger (#67496) 2022-03-14 17:37:48 +01:00
Franck Nijhof 57c33a5cf0
Remove deprecated OpenZWave integration (#68054) 2022-03-14 17:33:04 +01:00
Franck Nijhof 344537d0a8
Add Fan platform to Switch as X (#68122) 2022-03-14 15:07:21 +01:00
Franck Nijhof ed6c86a281
Add siren platform to Switch as X (#68118)
* Add siren platform to Switch as X

* Clarify inline test documentation

* Clarify inline test documentation
2022-03-14 13:55:06 +01:00
Franck Nijhof c70c699af0
Add cover platform to Switch as X (#68107) 2022-03-14 11:59:55 +01:00
Franck Nijhof 6aacaa744e
Only create WLED current sensors when available (#68116) 2022-03-14 11:49:16 +01:00
Franck Nijhof a29afc3731
Clean up Whois tests use entity_registry_enabled_by_default fixture (#68113) 2022-03-14 11:41:56 +01:00
Franck Nijhof dfdf5f2583
Add fixture for enabling disabled entities in WLED tests (#68087) 2022-03-14 09:50:55 +01:00
Jeef cea21a00b3
Add intellifire UDP discovery at configuration start (#67002)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-13 20:58:55 -10:00
J. Nick Koston b18096fc54
Remove unused columns from states/events tables (#68078) 2022-03-13 23:44:55 -07:00
Tom b138a759b6
Update plugwise module to 0.16.8 (#68082) 2022-03-13 19:37:59 +01:00
Franck Nijhof 25f2e4bd99
Small improvements for Switch as X (#68079)
* Small improvements forr Switch as X

* Test improvements

* Remove intregration tests from config flow test
2022-03-13 19:34:02 +01:00
Franck Nijhof c35aaef980
Fix Efergy tests (#68086) 2022-03-13 16:32:56 +02:00
Brandon Rothweiler 0bd65db31c
Add switch platform to the Mazda integration (#68025) 2022-03-12 16:32:35 -10:00
Steve Easley a2ce395fc6
Add remote platform to Kaleidescape integration (#67959) 2022-03-12 14:10:45 -10:00
Mike Fugate e59bf4f3af
Migrate SleepIQ unique IDs that are using sleeper name instead of sleeper ID (#68062) 2022-03-12 12:54:26 -10:00
Mike Fugate 6831be67f4
Add number entities to control SleepIQ actuator positions (#67770) 2022-03-12 09:58:03 -10:00
J. Nick Koston 8e3454e46a
Remove legacy compatiblity for camera platforms that do not support width/height (#68039)
- async_camera_image or camera_image must accept the width and
  height arguments
2022-03-12 20:47:14 +02:00
jan iversen 1a79118600
Fix modbus reload service (#68040)
* Fix modbus reload service.

* Please coverage.

* Resolve difference between local pytest and github.
2022-03-12 14:12:38 +02:00
J. Nick Koston a851921fe6
Filter IPv6 addresses from doorbird discovery (#68031) 2022-03-12 02:09:02 -10:00
Franck Nijhof 0467dc55fe
Add config flow to Uptime (#67408) 2022-03-12 12:36:08 +01:00
epenet 23b8229143
Adjust ms.remote.control error logging in SamsungTV (#67988)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-12 01:20:04 -10:00
J. Nick Koston 0d8f649bd6
Websocket api to subscribe to entities (payloads reduced by ~80%+ vs state_changed events) (#67891) 2022-03-11 20:54:49 -08:00
Brandon Rothweiler 5d2a65bb21
Add binary sensors to Mazda integration (#64604) 2022-03-11 16:32:47 -10:00
jan iversen d2e5c85429
Remove pragma from discover check. (#68002) 2022-03-11 19:58:18 +02:00
jan iversen 306498378c
Coverage 100% of Modbus climate (#67396)
* Coverage 100% of climate.py

* Allow 100% test.
2022-03-11 19:14:40 +02:00
Erik Montnemery 8948bada58
Add switch_as_x entity to wrapped switch's device (#67961) 2022-03-11 09:46:32 +01:00
Erik Montnemery e43c8b513e
Listen to entity registry events for wrapped switch in switch_as_x (#67962)
* Listen to entity registry events for wrapped switch in switch_as_x

* Simplify test
2022-03-10 21:26:35 +01:00
Erik Montnemery 65fbcfa0ba
Prevent recursive script calls from deadlocking (#67861)
* Prevent recursive script calls from deadlocking

* Address review comments, improve tests

* Tweak comment
2022-03-10 19:28:00 +01:00
Erik Montnemery 3d212b868e
Address review comments on switch_as_x tests (#67951)
* Address review comments on switch_as_x tests

* Correct test

* Move test instead of duplicating it
2022-03-10 17:23:16 +01:00
Erik Montnemery ee38dbd698
Add helper to set name of helper config entries (#67950) 2022-03-10 16:18:26 +01:00
Erik Montnemery 4e7d4db7ae
Align selectors with frontend updates (#67906)
* Align selectors with frontend updates

* Drop metadata from MediaSelector selection

* Adjust blueprint tests

* Address review comments

* Add tests for new selectors

* Don't stringify input

* Require min+max for number selector in slider mode

* vol.Schema does not like static methods

* Tweak
2022-03-10 16:17:59 +01:00
Steve Easley ab4aa835d1
Add sensor platform to Kaleidescape (#67884) 2022-03-10 09:15:53 -06:00
Erik Montnemery cb7e492e81
Add switch_as_x integration (#67878)
* Add switch_as_x integration

* Address review comments

* Add translation strings

* Rename entity_type option to target_domain

* Move LightSwitch class definition to switch_as_x/light.py

* Update manifest

* Move tests
2022-03-10 12:23:01 +01:00
Erik Montnemery 5ae48bcf74
Add config flow for binary_sensor group (#67802)
* Add config flow for binary_sensor group

* Address review comments

* Remove device class selection from flow

* Update translation strings
2022-03-10 10:39:51 +01:00
Álvaro Fernández Rojas 542c3cbf90
Address late Airzone PR comments and fix Fahrenheit temperatures (#67904)
* airzone: address late PR comments

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

* airzone: fix fahrenheit temperatures

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

* airzone: add changes suggested by @MartinHjelmare

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-03-09 20:51:39 +01:00
Shay Levy eee0c5372c
Use import instead of hass in Shelly tests (#67909) 2022-03-09 19:29:20 +01:00
Franck Nijhof a8ad9fc5f4
Mock Radio Browser entry setup in onboarding tests (#67905) 2022-03-09 06:41:14 -08:00
Erik Montnemery e7fba46a06
Refactor helper_config_entry_flow (#67895) 2022-03-09 13:18:19 +01:00
Raman Gupta 2791cd68c2
Timer code cleanup (#67604) 2022-03-09 10:42:07 +01:00
J. Nick Koston 723dcbafca
Complete fan speed transition from #59781 (#67743) 2022-03-09 10:38:12 +01:00
Brandon Rothweiler 2fc100926f
Add button entities to Mazda integration (#67597) 2022-03-09 04:16:07 +01:00
Álvaro Fernández Rojas 8549e31b27
Add Airzone HVAC Zoning Systems (#67666) 2022-03-08 22:28:39 +01:00
epenet 9ab56bd5c8
Allow discovery to update invalid unique_id in SamsungTV (#67859)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-08 22:27:53 +01:00
Allen Porter 8adcd10f55
Make google calendar loading API centric, not loading from yaml (#67722)
* Make google calendar loading API centric, not loading from yaml

Update the behavior for google calendar to focus on loading calendars based on the
API and using the yaml configuration to override behavior. The old behavior was
to first load from yaml, then also load from the API, which is atypical.

This is pulled out from a larger change to rewrite calendar using async and config
flows.

Tests needed to be updated to reflect the new API centric behavior, and changing
the API call ordering required changing tests that exercise failures.

* Update to use async_fire_time_changed to invoke updates
2022-03-08 21:56:49 +01:00
Jan Bouwhuis e574a3ef1d
Add MQTT notify platform (#64728)
* Mqtt Notify service draft

* fix updates

* Remove TARGET config parameter

* do not use protected attributes

* complete tests

* device support for auto discovery

* Add targets attribute and support for data param

* Add tests and resolve naming issues

* CONF_COMMAND_TEMPLATE from .const

* Use mqtt as default service name

* make sure service  has a unique name

* pylint error

* fix type error

* Conditional device removal and test

* Improve tests

* update description has_notify_services()

* Use TypedDict for service config

* casting- fix discovery - hass.data

* cleanup

* move MqttNotificationConfig after the schemas

* fix has_notify_services

* do not test log for reg update

* Improve casting types

* Simplify obtaining the device_id

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

* await not needed

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

* Improve casting types and naming

* cleanup_device_registry signature change and black

* remove not needed condition

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-08 16:27:18 +01:00
epenet d12118a425
Fix reauth trigger in SamsungTV (#67850)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-08 11:02:00 +01:00
Shay Levy 2d4d18ab90
Add Shelly gen2 cover support (#67705)
* Add Shelly gen2 cover support

* Make status property
2022-03-08 11:58:08 +02:00
J. Nick Koston bfe94f1cc5
Fix profiler dumping object when repr fails (#67674)
* Fix profiler dumping object when repr fails

* cover
2022-03-08 10:33:08 +01:00
epenet 36049ac514
Batch send commands in SamsungTV (#67847)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-08 10:10:17 +01:00
Lester Lo 56abd5f2cf
Add homekit pm type sensor (#46060)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-08 08:37:20 +01:00
epenet 6f38eda114
Adjust power_off for TheFrame in SamsungTV (#67841)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-08 08:20:58 +01:00
epenet 5b23b9a617
Adjust get_mac routine in SamsungTV (#67804)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-08 07:54:12 +01:00
epenet 2d4ccddd99
Fix SSDP unique id in SamsungTV config flow (#67811)
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-08 07:53:59 +01:00
epenet 1793c29fac
Move key sequences to bridge in SamsungTV (#67762)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-08 07:46:34 +01:00
Aaron Godfrey d302b0d14e
Fix todoist parsing due dates for calendar events (#65403) 2022-03-07 22:00:39 -08:00
J. Nick Koston c9ac0b49f6
Prevent scene from restoring unavailable states (#67836) 2022-03-07 20:43:19 -08:00
Joakim Sørensen 6b3b21bcfd
Revert "Add update integration (#66552)" (#67641) 2022-03-07 15:52:15 -08:00
Steve Easley ea82f2e293
Add Kaleidescape integration (#67711) 2022-03-08 00:16:43 +01:00
epenet c70bed86ff
Adjust websocket bridge logging in SamsungTV (#67809)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-07 23:31:57 +01:00
Franck Nijhof 9d42a425fc
Add config flow to Season (#67413) 2022-03-07 18:58:29 +01:00
J. Nick Koston f268191985
Handle fan_modes being set to None in homekit (#67790) 2022-03-07 09:10:38 -08:00
Jan Bouwhuis 98adeb6070
Fix false positive MQTT climate deprecation warnings for defaults (#67661)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-07 15:38:33 +01:00
Erik Montnemery a9cc2d2322
Add config flow for cover, fan, light and media_player groups (#67660)
* Add options flow support to HelperConfigFlowHandler

* Add config flow for cover, fan, light and media_player groups

* Update according to review comments

* Update translation strings

* Update translation strings

* Copy schema before adding suggested values
2022-03-07 13:05:04 +01:00
Joakim Plate e8c05298ba
Remove rfxtrx signal repetition (#67675) 2022-03-06 10:29:20 +01:00
J. Nick Koston 26c5dca45d
Ensure elkm1 can be manually configured when discovered instance is not used (#67712) 2022-03-06 00:02:22 -08:00
Mike Fugate cc9fd2bcba
Add firmness number entity to SleepIQ (#65841) 2022-03-05 11:45:56 -10:00
Raman Gupta 9632cbeffa
Improve zwave_js custom triggers and services (#67461)
* Improve zwave_js custom triggers and services

* Switch from pop to get

* Support string boolean values

* refactor and add coverage

* comments and additional assertions
2022-03-05 09:00:31 +01:00
epenet c5f7e7d1b0
Refactor run app in SamsungTV (#67616)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-04 14:37:27 -10:00
Simone Chemelli 777ae584d4
Add unique_id to Fritz diagnostics (#67384)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-04 14:43:33 -08:00
epenet 9db3e321e4
Add message for unsupported models in samsungtv (#67549)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-04 12:06:15 -10:00
Erik Montnemery 0c12914548
Add config flow for switch.light (#67447)
* Add config flow for switch.light

* Refactor according to code review

* Setup light switch from config entry

* Improve async_resolve_entity

* Prepare for multiple steps

* Remove name and options flow from switch light

* Check type before adding description to schema keys

* Remove options flow enabler

* Copy name from the switch

* Move helper flows to new file

* Improve test coverage

* Fix name

* Remove dead code from abstract method

* Remove manifest 'helper' option

* Validate registry entry id before forwarding to light platform

* Improve test

* Add translations

* Improve config entry setup

* Log when config entry fails setup

* Update homeassistant/components/switch/__init__.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-04 20:02:17 +01:00
G Johansson 3f9a6bbaa7
Fix sql false warning (#67614) 2022-03-04 08:20:10 -10:00
Franck Nijhof 5965b015dd
Adjust data entry flow to have an option data_schema (#67637) 2022-03-04 16:42:02 +01:00
Martin Hjelmare f91a809350
Add mysensors notify tests (#67634) 2022-03-04 14:47:27 +01:00
Jan Bouwhuis 5ab4b5d15a
MQTT Improve warning override deprecated settings (#67609) 2022-03-04 12:39:29 +01:00
Paulus Schoutsen fbc39d1206
Log stack trace if exception without message (#67587) 2022-03-04 09:48:07 +01:00
Allen Porter 57ffc65af2
Improve google calendar test quality and share setup (#67441)
* Improve google calendar test quality and share setup

Improve google calendar test quality by exercising different combinations of
cases and new coverage. The existing test cases do achieve very high coverage,
however some of the subtle interactions between the components are not as well
exercised, which is needed when we start changing how the internal code is
structured moving to async or to config entries.

Ipmrovement include:
- Exercising additional cases around different types of configuration parameters
  that control how calendars are tracked or not tracked. The tracking can be
  configured in google_calendars.yaml, or by defaults set in configuration.yaml
  for new calendars.
- Share even more test setup, used when exercising the above different scenarios
- Add new test cases for event creation.
- Improve test readability by making more clear the differences between tests
  exercising yaml and API test calendars. The data types are now more clearly
  separated in the two cases, as well as the entity names created in the two
  cases.

* Undo some diffs for readability

* Improve pydoc readability

* Improve pydoc readability

* Incorporate improvements from Martin

* Make test parameters a State instance

* Update test naming to be more correct

* Fix flake8 errors
2022-03-03 23:12:24 -08:00
Allen Porter 4e52f26ed1
Fix flaky google calendar test (#67600) 2022-03-03 22:48:55 -08:00
Chris Talkington 79e9eb1b94
Suppress roku power off timeout errors (#67414) 2022-03-03 21:08:29 -08:00
Erik Montnemery 2007379701
Restore state of template binary sensor with on or off delay (#67546) 2022-03-03 15:27:39 -08:00
Franck Nijhof 02391663c1
Add config flow to Moon (#67444) 2022-03-03 15:12:33 -08:00
J. Nick Koston 6d2302b703
Add guards for HomeKit version/names that break apple watches (#67585) 2022-03-03 15:03:46 -08:00
Jan Bouwhuis 9356bf1a8e
Fix MQTT config flow with advanced parameters (#67556)
* Fix MQTT config flow with advanced parameters

* Add test
2022-03-03 21:40:15 +01:00
Keilin Bickar 24e0c0b092
Add pressure sensor for SleepIQ (#67574) 2022-03-03 10:27:22 -10:00
Keilin Bickar 423c14e2a1
Add light entity to SleepIQ (#67363) 2022-03-03 09:42:33 -10:00
Per Öberg cfed1ff799
Add config flow for selecting precision of DS18B20 devices (#64315)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-03 11:41:59 -08:00
epenet 8e3b0f6554
Cleanup mac fixtures in samsungtv tests (#67529)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-03 08:07:08 -10:00
epenet 74483d2669
Fix Samsung TV state when the device is turned off (#67541)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-03 08:06:33 -10:00
Joakim Sørensen 1a78e18eeb
Add update integration (#66552)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-03 08:27:09 -08:00
Allen Porter 2678d8120a
Update nest media source to make device play most recent event (#67557) 2022-03-03 08:16:03 -08:00
Richard T. Schaefer 15580281a3
Allow area, device, and entity selectors to optionally support multiple selections like target selector (#63138)
* Allow area, device, and entity selectors to optionally support multiple selections like target selector

* Update according to code review comments

* Adjust tests

* Update according to review comments

* Tweak error message for multiple entities

Co-authored-by: Erik <erik@montnemery.com>
2022-03-03 10:35:06 +01:00
J. Nick Koston ad87d06d1f
Enable strict typing for usb (#67466)
* Enable strict typing for usb

* Enable strict typing for usb

* Enable strict typing for usb

* adjust

* coverage

* Update tests/components/usb/test_init.py
2022-03-03 07:59:31 +01:00
G Johansson a3a66451d7
Implement reauth for Sensibo (#67446) 2022-03-02 12:22:14 -10:00
epenet b8861578ff
Implement async websocket in samsungtv (#67127)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-02 09:30:33 -10:00
jan iversen a4915eb704
Handle exception in modbus slave sensor (#67472) 2022-03-02 09:49:57 -08:00
Jan Bouwhuis a97fe7aae0
Mqtt fix issue with displaying non UTF-8 payload (#67471)
* Mqtt fix issue with displaying non UTF-8 payload

* None or binary

* Casting and additional test

* casting
2022-03-02 17:01:47 +01:00
Michael Chisholm 797a9c3de5
Sort DMS results using only criteria supported by the device (#67475) 2022-03-02 07:54:47 -08:00
Erik Montnemery c5dd5e18c0
Improve binary sensor group when member is unknown or unavailable (#67468) 2022-03-02 07:53:13 -08:00
Erik Montnemery 5b8cf379a3
Improve mobile_app key handling (#67429) 2022-03-02 07:49:48 -08:00
Jc2k 0974abf9e2
Remove Ecobee homekit vendor extensions that just don't work (#67474) 2022-03-02 15:00:48 +01:00
cnico beb4756eb8
Address late review of flipr (#67477) 2022-03-02 13:00:33 +01:00
Martin Hjelmare e9496869da
Rework mysensors test fixtures (#67331)
* Reworks mysensors test fixtures

* Fix missing autospecced methods
2022-03-02 07:23:36 +01:00
Mike Degatano 4ea6ca7f91
Prefer internal docker URL for VLC telnet when possible (#67090) 2022-03-01 21:56:20 -08:00
Paulus Schoutsen 65eefcacfc
Add support for detecting hostname based addresses as internal (#67407) 2022-03-01 16:56:05 -08:00
cnico 7889aace5f
Add flipr API error detection and catch it correctly. (#67405) 2022-03-01 16:21:47 -08:00
Paulus Schoutsen d68ada74cc
Restore children media class (#67409) 2022-03-01 15:14:14 -08:00
Joakim Sørensen e58ce7ab6e
Fix returned value from backup/info WS command (#67439) 2022-03-01 21:37:51 +01:00
J. Nick Koston 94130a6060
Avoid creating wiring select for Magic Home if its not supported (#67417) 2022-03-01 09:18:09 -10:00
Joakim Sørensen 32adeb8356
Remove class attributes for backup manager (#67431)
* Remove class attributes for backup manager

* remove patches
2022-03-01 15:16:18 +01:00
Erik Montnemery f40932853f
Bump hatasmota to 0.4.0 (#67421) 2022-03-01 13:18:49 +02:00
Franck Nijhof 82948cc6c1
Update google-cloud-texttospeech to 2.10.0 (#66746) 2022-03-01 10:19:13 +01:00
J. Nick Koston fc4cb743bd
Add Signal Strength sensor to WiZ (#67411) 2022-02-28 18:50:26 -10:00
J. Nick Koston ac031cb817
Add diagnostics support to bond (#67412) 2022-02-28 18:50:15 -10:00
Joakim Sørensen 0ed51dae13
Add Backup integration (#66395)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-28 15:48:12 -08:00
epenet 1556868d56
Use async rest api in SamsungTV (#67369)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-28 09:53:42 -10:00
Matt Zimmerman d077c3b8d1
Add sensor to expose Powerwall backup reserve percentage (#66393) 2022-02-28 09:31:34 -10:00
Erik Montnemery 148762ce3f
Improve cast test for removing device (#67385) 2022-02-28 11:08:27 -08:00
jan iversen e891df0ff3
Allow multi read of Modbus sensor (#67378) 2022-02-28 11:07:55 -08:00
jan iversen 690223fb69
Add tests for Modbus slave binary sensors, up coverage to 100% (#67373) 2022-02-28 11:06:32 -08:00
Erik Montnemery f9616c2ae3
Remove custom WS command for removing Tasmota devices (#67382) 2022-02-28 18:13:38 +01:00
Erik Montnemery 5e4b16c69a
Remove custom WS command for removing MQTT devices (#67381)
* Remove custom WS command for removing MQTT devices

* Re-add removed test
2022-02-28 15:50:49 +01:00
Erik Montnemery c7d59bb272
Fix race when unsubscribing from MQTT topics (#67376)
* Fix race when unsubscribing from MQTT topics

* Improve test
2022-02-28 14:19:50 +01:00
Keilin Bickar bafa99fe3e
Add reauth to SleepIQ (#67321)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-27 15:47:31 -10:00
G Johansson bb4b7c96d0
Migrate entry unique id for Sensibo (#67119) 2022-02-27 11:38:39 -10:00
Paulus Schoutsen 9c440d8aa6
Guard for non-string inputs in Alexa (#67348) 2022-02-27 12:59:05 -08:00
Allen Porter 466f1686e4
Cleanup google calendar shared test fixtures (#67343) 2022-02-27 19:58:00 +01:00
Steven Looman dbbb5655e5
Bump async-upnp-client to 0.25.0 (#66414)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-27 08:29:29 -10:00
James Hewitt 494ae9aef6
Clean up RFXtrx tests (#67278)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-27 01:49:46 +01:00
Allen Porter deda9e38e4
Simplify google calendar API interactions (#67319)
* Simplify google calendar APIs and tests

* Simplify authentication logic at startup

* Improve readability of diffs

* Reduce diffs

* Simplify api datetime logic

* Remove duplicate test fixtures added in prior commit

* Remove duplicate event filter calls

* Fix event list argument names

* More improvements found from additional testing

* Remove unnecessary variables in create event call
2022-02-26 16:19:45 -08:00
Allen Porter 0e74184e4f
Simplify google calendar authentication setup (#67314)
Simplify google calendar authentication to combine some of the cases together, and reduce unecessarily checks. Make the
tests share common authentication setup and reduce use of mocks by introducing a fake for holding on to credentials.
This makes future refactoring simpler, so we don't have to care as much about the interactions with the credentials
storage.
2022-02-26 15:17:02 -08:00
stegm 3b2b2b9c69
Add diagnostics to Kostal Plenticore (#66435) 2022-02-26 13:32:38 -08:00
jan iversen 6ec9c402b1
Remove generic data types INT, UINT, FLOAT in modbus (#67268) 2022-02-26 13:27:48 -08:00
Martin Hjelmare d9abd5efea
Fix dhcp None hostname (#67289)
* Fix dhcp None hostname

* Test handle None hostname
2022-02-26 19:37:24 +01:00
Mike Fugate 858c09060d
Validate SleepIQ connection/credentials for the import step (#67292) 2022-02-26 17:55:11 +01:00
Joakim Sørensen e65670fef4
Repository event subscription (#67284) 2022-02-26 15:56:36 +01:00
Paulus Schoutsen 7e4b63690d
Fix camera content type while browsing (#67256) 2022-02-26 10:02:13 +01:00
Paulus Schoutsen 0a6c8f8e6c
Improve not shown handling (#67247) 2022-02-25 11:52:14 -08:00
James Hewitt 069e70ff03
Add mode setting to RFXtrx device configuration (#67173)
This allows users to configure the modes on their RFXtrx device without
downloading additional software that only runs on Windows. It also
enables the use of modes that cannot be permanently enabled on the
device, such as for undecoded and raw messages.
2022-02-25 20:43:29 +01:00
jan iversen 8233278ccc
Correct tests to use data_type in Modbus (#67246) 2022-02-25 11:37:52 -08:00
J. Nick Koston e81ca64aa4
Prevent the wrong WiZ device from being used when the IP is a different device (#67250) 2022-02-25 11:37:19 -08:00
Paulus Schoutsen 6fd9e71b8f
Adjust serializing resolved media (#67240) 2022-02-25 10:00:03 -08:00
Mark Dietzer 07a792019e
Fix Twitch component to use new API (#67153)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-25 09:15:49 -08:00
epenet 715d7f70f0
Adjust SamsungTV abstraction layer (#67216)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-25 17:15:45 +01:00
jan iversen c6f5633e24
Fix modbus test_delay (#66993) 2022-02-25 08:06:25 -08:00
Martin Hjelmare c856f673fb
Fix zwave_js migration luminance sensor (#67234) 2022-02-25 08:05:56 -08:00
jan iversen adc4c1e33f
Secure ATTR_ and CONF_ use identical texts in Modbus (#66901) 2022-02-25 08:05:19 -08:00
Andre Lengwenus 684f01f466
Add tests for LCN cover platform (#64832) 2022-02-25 10:22:48 +01:00
Joakim Plate 8a74295d6f
Add support for rfxtrx sirens and chimes (#66416)
* Add support for sirens and chimes

* Fixup testing

* Fixup comments

* Hook up existing off delay

* Add docs for off delay.

* Rename mixin
2022-02-25 07:53:22 +01:00
Raman Gupta ad4409bcb0
Don't add extra entities for zwave_js controller (#67209)
* Don't add extra entities for zwave_js controller

* Revert reformat of controller_state

* fix indentation issues

* fix indentation issues
2022-02-25 07:39:30 +01:00
Paulus Schoutsen 2a8dc38d2d
Move media_source to after_deps (#67195) 2022-02-24 14:54:46 -08:00
Martin Hjelmare d64777359d
Set zwave_js siren to unknown state if value is None (#67172) 2022-02-24 23:21:36 +01:00
Franck Nijhof 5eec425e2c
Remove deprecated MH-Z19 CO2 Sensor integration (#67186) 2022-02-24 23:50:17 +02:00
J. Nick Koston 00c6e30988
Fix ElkM1 systems that do not use password authentication (#67194) 2022-02-24 11:07:17 -08:00
Paulus Schoutsen fb4de7211b
Make Google sync_seralize a callback (#67155) 2022-02-24 08:36:36 -08:00
Shay Levy 7068c46f8f
Use SSDP dataclass in webostv tests (#67181) 2022-02-24 16:59:20 +01:00
rforro cbdfff25ca
Presets for single ZONNSMART TRV (#67157)
* Presets for single ZONNSMART TRV

* added zonnsmart climate tests

* black8 fix
2022-02-24 08:48:15 -05:00
jan iversen 9131fb39fe
Allow "slave" parameter in modbus service calls (#66874)
* Allow "slave" parameter in modbus service calls.
2022-02-24 13:35:45 +01:00
rikroe a12870081e
Remove deprecated yaml config from bmw_connected_drive (#66965)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-02-24 13:04:21 +01:00
Franck Nijhof 14059c5aa9
Remove deprecated YAML configuration from CPU Speed (#67166) 2022-02-24 11:25:42 +01:00
Franck Nijhof 1d03313bf5
Remove deprecated YAML configuration from Whois (#67163)
* Remove deprecated YAML configuration from Whois

* Clean up platform schema
2022-02-24 10:03:42 +01:00
Franck Nijhof 6bd21f05dc
Remove deprecated YAML configuration from PVOutput (#67162)
* Remove deprecated YAML configuration from PVOutput

* Clean up platform schema
2022-02-24 10:02:42 +01:00
J. Nick Koston c9e46d360b
Use compact encoding for JSON websocket messages (#67148)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-23 22:15:20 -08:00
Paulus Schoutsen a42547c0e5
Allow get_states to recover (#67146) 2022-02-23 21:15:48 -08:00
Paulus Schoutsen a5383e40eb
Media source to verify domain to avoid KeyError (#67137) 2022-02-23 16:22:39 -08:00
Robert Svensson 46c2bd0eb0
Tweak UniFi client tracker (#67129) 2022-02-23 09:26:46 -10:00
Erik Montnemery eb4bc273af
Improve Tasmota device removal (#66811) 2022-02-23 20:21:28 +01:00
Raman Gupta 9fe61f9e7f
Add zwave_js light support for HSM-200 V1 (#67089)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-23 20:18:42 +01:00
Joakim Plate 9906717e33
Use opt in device removal for rfxtrx (#58252) 2022-02-23 20:17:48 +01:00
Martin Hjelmare 2dd14f8e94
Add mysensors remove device support (#67128) 2022-02-23 10:59:12 -08:00
Maximilian 731f9ca7e0
Fix missing nina start value (#66869) 2022-02-23 10:45:10 -08:00
sophof 79d267f8d7
Fix derivative integration showing unexpected spikes (#65528) 2022-02-23 10:16:12 -08:00
Jonathan Keljo a08165a8d7
Create greeneye_monitor entities when monitor connects (#66710) 2022-02-23 10:09:12 -08:00
Kevin Stillhammer 93fab1f996
Cleanup Waze_travel_time_sensor_tests (#67047) 2022-02-23 09:59:42 -08:00
Francois Chagnon 87593fa3ec
Add Humidifier support to zwave_js (#65847) 2022-02-23 18:01:45 +01:00
jjlawren cfd763db40
Refactor Sonos media metadata handling (#66840)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-23 08:58:00 -08:00
Joakim Sørensen 49aabcb2ac
Add homeassistant to partial backup service (#67117) 2022-02-23 08:38:52 -08:00
epenet 419e683526
Add Remote Engine Start status to Renault integration (#67028)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-23 08:14:58 -08:00
Robert Svensson dd88a05cb4
Make type checking pass for deCONZ init, gateway and services (#66054)
* Type and enable type checking for init, config_flow, diagnostics, gateway and services

* Fix import

* Fix review comment
2022-02-23 13:10:35 +01:00
Franck Nijhof 3afadf8adb
Revert "Block peer certs on supervisor" (#67104) 2022-02-23 12:32:07 +01:00
Jan Bouwhuis 8dbb184ed5
Add MQTT publish ACK timeout test (#67062) 2022-02-23 12:30:13 +01:00
Jan Bouwhuis 845bf80e72
Mqtt improve test coverage (#66279)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-23 12:29:32 +01:00
Paulus Schoutsen 459e6c273b
Track hidden items in media source (#67096) 2022-02-23 09:51:01 +01:00
Paulus Schoutsen fda3877852
Improved local media ID handling (#67083) 2022-02-23 08:39:54 +01:00
Michael b8590fde40
Improve tests of Fritz!Tools (part1) (#66972) 2022-02-22 16:35:22 -08:00
jjlawren 1658d530e1
Add Plex scan_clients button, enable autoscan (#67055)
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-02-22 16:34:48 -08:00
J. Nick Koston d5a2381f07
Add diagnostics support to lutron_caseta (#67079) 2022-02-22 16:31:41 -08:00
Marcel van der Veldt cb190a7b17
Add (basic) diagnostics support for Hue integration (#67074)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-22 15:44:02 -08:00
Paulus Schoutsen 938b64081b
Block peer certs on supervisor (#66837)
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-02-22 13:59:40 -08:00
Paulus Schoutsen 756e711850
Add a new validate config WS command (#67057) 2022-02-22 22:28:37 +01:00
epenet a60c37cdb8
Expose Samsung wrapper as async (#67042)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-22 08:31:16 -10:00
Chris Talkington f30681dae7
Use aiopyarr for sonarr (#65349) 2022-02-22 09:33:10 -08:00
Kevin Stillhammer dbb8806b31
Use length_util conversion (#67049) 2022-02-22 19:06:23 +02:00
Martin Hjelmare d96c2df6a8
Bump pyicloud to 1.0.0 (#67037) 2022-02-22 16:25:46 +01:00
G Johansson a4a5057b0b
Improve code quality moon (#66461)
* Code quality moon

* Fix review comments
2022-02-22 15:59:59 +02:00
epenet c3dc936b54
Cleanup Renault tests (#67030)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-22 14:21:38 +01:00
Raman Gupta a12d6aa6ff
Log error when using zwave_js 'refresh_value' on ping button/node status sensor (#66847)
* Raise when using 'zwave_js.refresh_value' on ping button

* Revert test change

* block till done

* Switch from raising an exception to logging an error for both the ping button and node status sensor

* missed commit
2022-02-22 12:03:01 +01:00
Erik Montnemery 31867d54b6
Add Google Cast groups to device registry (#66805) 2022-02-22 10:26:41 +01:00
J. Nick Koston f69571f164
Add support for climate fan and oscillate mode to HomeKit (#66463) 2022-02-22 09:58:31 +01:00
Keilin Bickar 7f5304b6c2
Add Switch entity to SleepIQ (#66966)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-21 21:53:04 -10:00
Kevin Stillhammer 6ec0e3811a
Waze travel time sensor tests (#66558) 2022-02-21 23:15:35 -08:00
Kevin Stillhammer 2cba9b3d7e
Cleanup_google_travel_time_tests (#66868) 2022-02-21 23:05:12 -08:00
J. Nick Koston d554a82875
Add diagnostics support to flux_led (#67012) 2022-02-21 22:53:41 -08:00
Mike Degatano a51d9012ad
Fix MQTT lights tests using `STATE_OFF` (#67011) 2022-02-21 22:52:31 -08:00
Sebastian Lövdahl 744a2013cd
Improve Vallox filter remaining time sensor (#66763) 2022-02-21 13:17:54 -10:00
Michael Chisholm b19bf9b147
Add dlna_dms integration to support DLNA Digital Media Servers (#66437) 2022-02-21 15:14:08 -08:00
rubenverhoef 95de1dd446
Additional MQTT light command templates (#63361)
Co-authored-by: jbouwh <jan@jbsoft.nl>
2022-02-22 00:00:49 +01:00
jan iversen 8741ff0684
Diferentiate between attr_name and entity_id in Modbus tests (#66999) 2022-02-21 14:56:31 -08:00
corneyl 137793c067
Add sensors for next Picnic deliveries (#66474) 2022-02-21 23:45:30 +01:00
Keilin Bickar e6af7847fc
Add Multi factor authentication support for Sense (#66498)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-21 12:05:12 -10:00
epenet d49029e9fc
Add door and lock status to Renault integration (#66698)
* Add coordinator for lock status

* Add fixture for lock status

* Add lock status binary sensor

* Add to test constants

* Adjust conftest

* Fix inverted state

* Add door status

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-21 20:07:43 +01:00
Diogo Gomes 9ed4bcf965
Add unique_id to the filter component (#65010)
* Optional manually defined uniqueid

* move to _attr
2022-02-21 21:00:09 +02:00
jjlawren 76149876ab
Enable fallback polling for Sonos microphone binary_sensor (#66299) 2022-02-21 19:46:20 +01:00
J. Nick Koston 4811b510eb
Ensure WiZ can still setup with old firmwares (#66968) 2022-02-21 19:42:54 +01:00
J. Nick Koston 9a5eec561a
Only set require_restart on config entry reload if its not recoverable (#66994) 2022-02-21 10:27:23 -08:00
jan iversen cb877adb6a
Allow multiread in modbus binary_sensor (#59886) 2022-02-21 10:22:50 -08:00
Paulus Schoutsen 8080aab98e
Allow deleting files from media source (#66975) 2022-02-21 19:14:42 +01:00
Diogo Gomes abaf284ef2
Cast string back to datetime in Sensor Filter (#65396) 2022-02-21 19:14:23 +01:00
javicalle cd38878a4c
Restore states for RFLink binary_sensors (#65716) 2022-02-21 19:11:05 +01:00
Robert Hillis 7947866962
Refactor tests for modem_callerid (#59691)
* Refactor tests for modem_callerid

* uno mas

* uno mas

* uno mas
2022-02-21 10:08:19 -08:00
J. Nick Koston f2f2a08966
Add support for auto target fan state in HomeKit fans (#66383) 2022-02-21 19:08:09 +01:00
Teemu R 16cc2b790b
Create LED switches for tplink dimmers (#66839) 2022-02-21 19:02:11 +01:00
Mike Degatano 8ea6cbc257
Support variables in templates with timeout (#66990) 2022-02-21 09:56:20 -08:00
Franck Nijhof d839febbe7
Add Radio Browser integration (#66950) 2022-02-21 09:13:02 -08:00
uvjustin 4efada7db0
Allow stream log level to change at runtime (#66153) 2022-02-21 17:58:15 +01:00
J. Nick Koston a82d4d1b7b
Add support for dual head WiZ devices (#66955) 2022-02-21 17:50:42 +01:00
Erik Montnemery c496748125
Add WS API for removing a config entry from a device (#66188)
* Add WS API for removing a config entry from a device

* Address review comments

* Address review comments

* Remove entity cleanup from ConfigEntries

* Update + add tests

* Improve comments in test

* Add negative test

* Refactor according to review comments

* Add back async_remove_config_entry_device

* Remove unnecessary error handling

* Simplify error handling
2022-02-21 10:11:18 +01:00
Dave T 865159781f
Use new enums in vizio tests (#62710)
* Use new enums in vizio tests

* Code review: revert wrong conftest changes

* Code review: Revert incorrect removal of vizio const

* Reinstate wrongly reverted files

* Fix double line

* Fix new test after rebase
2022-02-21 08:28:56 +01:00
Tom 620b653d76
Plugwise bump module version to fix heating-state and OnOff devices (#66936) 2022-02-20 20:45:19 +01:00
Klaas Schoute 7c8f4a4262
Update Pure Energie integration (#66946)
* Remove service entry_type

* Set raise on progress
2022-02-20 16:58:21 +01:00
Michael Chisholm 3d5790aaad
Avoid accessing hass.data in test_play_media_didl_metadata (#66939) 2022-02-20 14:14:53 +01:00
Aidan Timson 5b28e2d983
Add discussions sensors to GitHub (#66937) 2022-02-20 13:32:24 +01:00
Joakim Sørensen 2d52aca9eb
Add Latest Tag sensor to GitHub integration (#66932) 2022-02-20 13:00:01 +01:00
Joakim Sørensen 9f57ce504b
Use GraphQL for GitHub integration (#66928) 2022-02-20 11:59:11 +01:00
jan iversen 4ca339c5b1
Set slave default to 0, as already documented in Modbus (#66921) 2022-02-20 11:56:38 +01:00
Raman Gupta 6e5ae3e2e4
Add zwave_js.event automation trigger (#62828)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-20 11:53:03 +01:00
Raman Gupta 10ad97a5e2
Improve zwave_js notification event handling (#66790) 2022-02-19 21:15:54 -08:00
Erik Montnemery c582aecc10
Deduplicate code in cast media_player (#66815)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-19 21:14:31 -08:00
Michael Chisholm 3c15fe8587
Add media browser support to dlna_dmr (#66425) 2022-02-19 21:07:38 -08:00
jan iversen 6a7872fc1b
Remove async_setup_component() from tests (#66905) 2022-02-19 21:00:14 -08:00
Allen Porter f3add292d5
Update nest climate set_temperature to allow hvac_mode (#66909) 2022-02-19 20:57:29 -08:00
J. Nick Koston e9ca7c2516
Add support for WiZ diagnostics (#66817) 2022-02-19 20:54:12 -08:00
René Klomp 496583bca5
Prefix sma sensor name (#65234)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-02-19 20:27:06 +01:00
James Taylor 27038fda27
Update RSS feed template (#62966) 2022-02-19 13:26:42 -06:00
G Johansson 6464ab8356
Bump pysensibo to 1.0.4 (#66886) 2022-02-19 12:00:49 -06:00
Keilin Bickar d59dbbe859
Create button entities for SleepIQ (#66849) 2022-02-19 11:54:52 -06:00
Klaas Schoute 6c2d6fde66
Add Pure Energie integration (#66846) 2022-02-19 17:53:25 +01:00
J. Nick Koston 8f0b6eac41
Fix yeelight config flow ip update and timeout (#66883) 2022-02-19 17:24:50 +01:00
J. Nick Koston a18d4c51ff
Ensure dhcp can still discover new devices from device trackers (#66822)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-19 09:01:34 -06:00
Simon Hansen 52ca1a3d47
Code enhancements for ISS (#66813)
* Code enhancements for ISS

* Assert options
2022-02-19 11:38:10 +01:00
Raman Gupta 4ff1f5c788
Create zwave_js ping button at the right time (#66848)
* Create zwave_js ping button at the right time

* fix tests
2022-02-19 11:16:14 +01:00
J. Nick Koston 3bf2be1765
Startup with an emergency self signed cert if the ssl certificate cannot be loaded (#66707) 2022-02-18 16:08:26 -08:00
epenet 3aa18ea5d8
Add installed apps to samsungtv sources (#66752)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-18 13:33:49 -08:00
Paulus Schoutsen d3bb622a3c
Bump hass-nabucasa to 0.53.0 (#66826) 2022-02-18 11:53:02 -08:00
Keilin Bickar a367d2be40
Modernize Sleepiq and add new entities (#66336)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-18 12:50:44 -06:00
Kevin Stillhammer beb30a1ff1
Add google_travel_time sensor tests (#66568)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-18 10:21:28 -08:00
Erik Montnemery f1648960f5
Improve cleanup of Google Cast entities (#66801) 2022-02-18 15:05:14 +01:00
Martin Hjelmare 56d45c49e9
Clean webostv notify (#66803)
* Replace conf with attr

* Test notify service without data parameter

* Clean kwargs access

* Replace icon constant

* Use data from notify
2022-02-18 15:03:05 +02:00
Erik Montnemery ba6d1976df
Improve MQTT device removal (#66766)
* Improve MQTT device removal

* Update homeassistant/components/mqtt/mixins.py

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

* Adjust tests

* Improve test coverage

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-18 13:45:25 +01:00
Erik Montnemery 2abcd7cd94
Correct state restoring for MQTT temperature sensors (#66741)
* Correct state restoring for MQTT temperature sensors

* Adjust test

* Adjust test
2022-02-18 11:35:44 +01:00
Teemu R 483545eeaa
Bump python-songpal dependency to 0.14 (#66769)
* Bump python-songpal dependency to 0.14

* Fix tests

* pip_check -1

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-02-18 11:31:46 +02:00
Erik Montnemery 98982c86e4
Add MQTT diagnostics (#66730)
* Add MQTT diagnostics

* Redact device tracker location

* Adjust tests

* Address comments from code review
2022-02-18 09:28:49 +01:00
Franck Nijhof e26488b1ca
Add config flow to MJPEG IP Camera (#66607) 2022-02-18 00:03:41 -08:00
Raman Gupta 82ebb7047f
Bump zwave-js-server-python to 0.35.0 (#66785)
* Bump zwave-js-server-python to 0.35.0

* Remove support for new event type which should go in a separate PR
2022-02-18 02:36:27 -05:00
Allen Porter 58551ec66d
Update nest camera tests to use common test fixture (#66192) 2022-02-17 23:08:29 -08:00
J. Nick Koston 64277058b5
Ensure lutron caseta imports set the unique id (#66754) 2022-02-18 00:03:20 +01:00
epenet 8bf19655f1
Fix samsung mocks (#66765)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-17 13:04:48 -08:00
epenet 6d0a06c57a
Add type hints in samsungtv tests (#66632)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-17 12:47:58 -08:00
Tom dacc2b1ab0
Plugwise update Zigbee addressing fixture data to 64bits (#66761) 2022-02-17 20:58:06 +01:00
Shay Levy e79348f952
Fix webostv notify service (#66760) 2022-02-17 20:13:09 +01:00
Chris Talkington 9d5dc2ce24
Improve roku play media handling (#66429)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-17 10:19:01 -08:00
Tom f8d38a1025
Plugwise: Update fixtures (#66749) 2022-02-17 17:03:18 +01:00
Franck Nijhof 276fd4f42c
Add Python 3.10 to CI (#59729) 2022-02-17 14:58:24 +01:00
Franck Nijhof de24d00a1c
Use min/max/step from thermostat in Plugwise (#66618) 2022-02-17 14:11:47 +01:00
Jan Bouwhuis 83846bb5cc
MQTT climate preset_modes rework (#66062)
* MQTT climate preset_modes rework

* Set deprection date to 2022.9 (6 months)

* add valid_preset_mode_configuration for discovery

* Update deprecation date
2022-02-17 13:51:35 +01:00
Erik Montnemery 4236764fd5
Don't allow creating or updating input_select with duplicates (#66718)
* Don't allow creating or updating input_select with duplicates

* Simplify error message

* Improve error message
2022-02-17 13:11:49 +01:00
epenet a9aefb66b5
Add device info to samsungtv diagnostics (#66728)
* Add device-info to samsungtv diagnostics

* Adjust tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-17 12:35:02 +01:00
Raman Gupta a1b81b2de4
Add inclusion state to zwave_js/network_status WS API cmd (#65398) 2022-02-17 11:38:20 +01:00
Erik Montnemery f89de613d9
Improve MQTT binary_sensor test (#66688) 2022-02-17 00:06:42 +01:00
Brett Adams bccfaceedb
Code Quality improvements for Aussie Broadband (#65408)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-16 23:38:05 +01:00
epenet 2687f61428
Fix slow samsungtv test (#66696) 2022-02-16 16:04:50 -06:00
Erik Montnemery eaf73318e1
Remove duplicated options from input_select (#66680) 2022-02-16 22:04:49 +01:00
epenet 0138caa277
Fix side_effect patching in samsungtv tests (#66651)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-16 12:40:11 -08:00
epenet 2d33e435b9
Fix token refresh in samsungtv (#66533) 2022-02-16 12:28:01 -08:00
epenet 14e48bac3a
Fix SamsungTVWS mocking in samsungtv tests (#66650)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-16 12:13:11 -08:00
Robert Svensson dd9b14d5c9
Add Button platform to deCONZ integration (#65700)
* Improve scene platform

* Add button platform, tests and fix tests affected by new entities existing

* Remove unnused property

* Bump dependency to v87
2022-02-16 17:55:30 +01:00
Bram Kragten a9390908ea
Keep TTS media browser params in identifier (#66663)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-16 08:54:57 -08:00
Paulus Schoutsen cd5b69d02e
Add Google local indicator (#66610) 2022-02-16 07:54:59 -08:00
Tobias Sauerwein 3d1cad9f67
Improve handling of cloud hook registration (#65664)
Signed-off-by: cgtobi <cgtobi@gmail.com>
2022-02-16 16:42:45 +01:00
Mike Fugate 0bd0b4766e
Refactor sleepiq as async with config flow (#64850)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-16 08:51:29 -06:00
Franck Nijhof 4051e2f518
Fix Plugwise auto HVAC mode (#66639)
* Fix Plugwise auto hvac mode

* Clean up set HVAC
2022-02-16 13:22:21 +01:00
J. Nick Koston e0cee22b8a
Switch ezviz to use integration discovery (#66579) 2022-02-16 12:07:36 +01:00
J. Nick Koston 38b9bea9a3
Switch tplink to use integration discovery (#66575) 2022-02-16 12:06:58 +01:00
epenet cf5652737a
Cleanup samsungtv tests (#66570)
* Drop unused init method

* Add type hints to media_player tests

* Adjust test_init

* Adjust media_player

* Add type hints to conftest

* Use Mock in test_media_player

* Use lowercase in test_init

* Use relative import in diagnostics

* Add type hints to config_flow

* Adjust coveragerc

* Make gethostbyname autouse

* Cleanup gethostbyname and remote fixtures

* Drop unused fixtures

* Undo type hints and usefixtures on media_player

* Undo type hints and usefixtures in test_init

* Undo type hints in conftest

* Undo usefixtures in test_config_flow

* Format

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-16 09:29:52 +01:00
Marcel van der Veldt 8f4ec89be6
Bump aiohue to version 4.1.2 (#66609) 2022-02-15 17:26:13 -08:00
J. Nick Koston 99568b133f
Switch flux_led to use integration discovery (#66574) 2022-02-16 01:25:43 +01:00
J. Nick Koston 6ae2331805
Switch senseme to use integration discovery (#66576) 2022-02-16 00:47:01 +01:00
J. Nick Koston d79d775d92
Switch elkm1 to use integration discovery (#66572) 2022-02-15 23:18:55 +01:00
J. Nick Koston b28754e5fe
Switch steamist to use integration discovery (#66578) 2022-02-15 23:18:13 +01:00
J. Nick Koston d64ef2ba73
Deduplicate flux_led title and CONF_NAME (#66598) 2022-02-15 22:44:35 +01:00
J. Nick Koston f069a37f7d
Allow integrations to request dhcp discovery flows for registered devices (#66528) 2022-02-15 11:02:52 -06:00
J. Nick Koston 2b43293363
Switch unifiprotect to use integration discovery (#66569)
Backstory: https://github.com/home-assistant/core/pull/65752#discussion_r800068914
2022-02-15 17:02:33 +01:00
Joakim Sørensen 0d2712e436
Add binary_sensor to Version integration (#66539)
* Add binary_sensor to version integration

* Add test to check we not create for local

* Move _attr_icon to sensor

* Update homeassistant/components/version/binary_sensor.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-15 16:39:34 +01:00
epenet 52ebe58b14
Add tests for samsungtv diagnostics (#66563)
* Add tests for samsungtv diagnostics

* Adjust coveragerc

* Adjust type hints

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-15 16:24:13 +02:00
Robert Svensson 1bc936ca8d
Improve Deconz sensors (#65259) 2022-02-15 08:32:56 +01:00
Allen Porter 572fa7d055
Update nest camera to pull still images from stream component (#66427)
* Update nest to use stream thumbnail when it exists

* Update nest camera to always pull still image from stream

Update nest camera to always pull the still iamge from the stream component,
removing the use of the separate ffmpeg call, and removing use of the nest event
image. Image for events can now be pulled using the media source APIs, rather
than relying on the camera snapshot.

* Simplify a comment

* Remove more unused variables

* Simplify comments, image, and test code

* Remove assertions for placeholder images
2022-02-14 21:45:09 -08:00
Brett Adams 6b6f50e28b
Bump pyaussiebb in Aussie Broadband (#65754)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-02-14 21:02:40 -06:00
Diogo Gomes b211a1faa7
Fix utility meter restore state (#66490)
* Address #63874

* avoid setting _last_period to None

* name is always set in discovery

* ValueError never happens only DecimalException

* async_tariff_change tracks state change - state machine will not pass a None

* test we only reset one utility_meter

* test corrupted restored state

* pretty sure _current_tariff doesn't change from init until here

* missing assert

* Revert "async_tariff_change tracks state change - state machine will not pass a None"

This reverts commit 24fc04a964.

* address review comment

* always a Decimal
2022-02-15 02:16:30 +01:00
Raman Gupta 152dbfd2fe
Add button entity to ping zwave_js node (#66129)
* Add button entity to ping zwave_js node

* Fix docstring

* Fix docstrings

* Fix and simplify tests

* Fix name

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/services.py

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

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/button.py

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

* review comments

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/button.py

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

* Remove self.client line

* Add callback to remove entity

* Add extra dispatch signal on replacement

* Combine signals for valueless entities

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-14 15:38:22 -05:00
Raman Gupta 113c3149c4
Improve zwave_js device automation strings for config parameters (#66428)
* Improve zwave_js device automation strings for config parameters

* rename things to be more clear

* Match config file format
2022-02-14 15:14:02 -05:00
Simon Hansen 7cb0ce0eec
Move config option to OptionsFlow in iss (#65303)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-02-14 21:07:50 +01:00
Paulus Schoutsen 8456c6416e
Add a media source to TTS (#66483) 2022-02-14 08:54:12 -08:00
J. Nick Koston 013d227113
Ensure WiZ cleans up on shutdown and failed setup (#66520) 2022-02-14 17:32:34 +01:00
Paulus Schoutsen fec8c2ab82
Add support for MJPEG cameras to camera media source (#66499) 2022-02-14 17:04:19 +01:00
J. Nick Koston 63cb79ec29
Add support for setting the effect speed in WiZ (#66457) 2022-02-14 16:49:43 +01:00
J. Nick Koston 445ad1d592
Add test coverage for WiZ lights and switches (#66387) 2022-02-14 16:31:26 +01:00
Paulus Schoutsen 707f112f51
Improve raised exception consistency for media source (#66497) 2022-02-14 15:41:53 +01:00
Erik Montnemery 795d249c8c
Small improvement of cast test (#66513) 2022-02-14 15:06:33 +01:00
J. Nick Koston 00d7fdd274
Add WiZ occupancy sensor support (#66231) 2022-02-14 14:25:15 +01:00
Ryan Fleming 35b343de9e
Octoprint buttons (#66368) 2022-02-14 11:05:06 +01:00
Raman Gupta 051bf173dc
revert change in vizio logic to fix bug (#66424) 2022-02-14 09:49:19 +02:00