Commit Graph

21158 Commits (487a74ba5d27e0042f61598d615467503e4202c2)

Author SHA1 Message Date
Denys Dovhan 00eb23b43f
Allow loading Lovelace dashboards not only from root (#37561) 2020-08-31 10:51:03 +02:00
Franck Nijhof 97e1be98df
Upgrade sentry-sdk to 0.17.1 (#39495) 2020-08-31 10:28:52 +02:00
Paulus Schoutsen 4688171ce0
Add cache headers to picture integration (#39402) 2020-08-31 09:25:39 +02:00
Eugene Prystupa b71cbd2033
Fix a problem with set_speed(off) when direct HA API for set speed is called (#39488) 2020-08-30 21:10:15 -05:00
HomeAssistant Azure 2856915b6d [ci skip] Translation update 2020-08-31 00:03:01 +00:00
Tom Harris 75153dd4a3
Apply code review for insteon config flow (#39171)
* Move options import to async_setup_entry

* Add tests for insteon init

* Move common constants to const

* Clean up to adhear to standards

* Create mock insteon device manager

* Update for HA standards

* Use keys and align to config_flow steps

* Fix default port for hub v1

* Update doc string to represent function

* Remove dump print commands

* Add modem_type entry

* Simplify dict key test

* Setup platforms in async_setup_entry

* Black

* Black tests
2020-08-30 19:15:09 -04:00
Aidan Timson f7e6b060a7
Make onvif username optional (#39415) 2020-08-30 17:39:33 -04:00
Chris Talkington 159f6750d7
Update progettihwsw to use CoordinatorEntity (#39477)
* update progettihwsw to use CoordinatorEntity

* Update switch.py

* Update binary_sensor.py

* Update binary_sensor.py

* Update switch.py
2020-08-30 22:53:32 +02:00
Arda ŞEREMET e707b50658
Add integration for ProgettiHWSW automation boards (#37922)
* Opened a new fresh page to clean my mess.

* Solved pylint warnings

* Fixing pylint issue of defining attr outside init.

* Excluded files from being tested by codecov.

* Solved binary sensor error.

* Fixed some stylisation errors.

* Resolved input not updating problem.

* Added port entry to test file.

* Added tests for create_entry.

* Added support for better state management.

* Increased code coverage of config_flow.py & made some tweaks.

* Increased coverage of config_flow.py by adding tests for unknown exceptions.

* A small bugfix.

* Stylised code as per Chris' suggestions.

* Stylised code again.

* Improved quality of test code.

* Added step_id in config flow tests.
2020-08-30 15:03:33 -05:00
J. Nick Koston 25f9560fb6
Update schluter to use CoordinatorEntity (#39454) 2020-08-30 14:19:48 -05:00
J. Nick Koston 705b253a99
Update awair to use CoordinatorEntity (#39469) 2020-08-30 14:05:22 -05:00
Tom Brien 56057a638f
Clarify when message come from FCM (#39455) 2020-08-30 14:04:36 -05:00
Chris Talkington 863c7414bc
Implement code review for nzbget (#39425)
* implement code review for nzbget

* Update strings.json

* Update sensor.py

* Update config_flow.py

* Update sensor.py

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py
2020-08-30 13:59:15 -05:00
J. Nick Koston 9ec870c750
Update hunterdouglas_powerview to use CoordinatorEntity (#39463) 2020-08-30 13:28:09 -05:00
J. Nick Koston b57f33c41a
Update control4 to use CoordinatorEntity (#39466) 2020-08-30 13:27:46 -05:00
J. Nick Koston ab0b0dc51c
Update ovo_energy to use CoordinatorEntity (#39459) 2020-08-30 13:20:45 -05:00
J. Nick Koston 1fbb158211
Update dexcom to use CoordinatorEntity (#39464) 2020-08-30 13:20:01 -05:00
J. Nick Koston c4f5a05b27
Update coolmaster to use CoordinatorEntity (#39465) 2020-08-30 13:18:19 -05:00
Maciej Bieniek 80910b4f9a
Add bieniu as code owner for shelly (#39467) 2020-08-30 13:17:27 -05:00
J. Nick Koston 9d1045dd7a
Update met to use CoordinatorEntity (#39462) 2020-08-30 20:14:09 +02:00
Marvin Wichmann 9f4d4862b4
Update xknx to 0.13.0 (#39407) 2020-08-30 20:13:47 +02:00
J. Nick Koston 2b78d5235d
Update risco to use CoordinatorEntity (#39456) 2020-08-30 13:04:30 -05:00
springstan e5b360cd08
Update coronavirus to use CoordinatorEntity (#39449)
* Update coronavirus to use CoordinatorEntity

* Remove should_poll from coronavirus
2020-08-30 13:04:01 -05:00
J. Nick Koston 692ed8c639
Update notion to use CoordinatorEntity (#39460) 2020-08-30 13:02:56 -05:00
J. Nick Koston 773860ca5c
Update plugwise to use CoordinatorEntity (#39457) 2020-08-30 13:02:27 -05:00
springstan 953626b2d4
Update meteo_france to use CoordinatorEntity (#39432)
* Update meteo_france to use CoordinatorEntity

* Update homeassistant/components/meteo_france/sensor.py

* Update homeassistant/components/meteo_france/weather.py

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-30 19:52:53 +02:00
Chris Talkington bd7682a694
Update roku state faster after actions (#39453)
* update roku state faster after actions

* Update media_player.py

* Update remote.py
2020-08-30 12:42:53 -05:00
springstan 17734d54ab
Update hue to use CoordinatorEntity (#39446) 2020-08-30 11:32:56 -05:00
springstan d3b845c01a
Update tile to use CoordinatorEntity (#39439) 2020-08-30 11:32:32 -05:00
J. Nick Koston d9c9adbc91
Update tankerkoenig to use CoordinatorEntity (#39440) 2020-08-30 18:27:06 +02:00
springstan cceaa088cb
Update toon to use CoordinatorEntity (#39441) 2020-08-30 18:26:37 +02:00
J. Nick Koston 225743a620
Update upnp to use CoordinatorEntity (#39434) 2020-08-30 18:17:41 +02:00
springstan 42818c150f
Update pi_hole to use CoordinatorEntity (#39433) 2020-08-30 11:10:45 -05:00
springstan 7bed868d60
Update wolflink to use CoordinatorEntity (#39444) 2020-08-30 11:10:28 -05:00
springstan ce1ef73366
Update WLED to use CoordinatorEntity (#39442) 2020-08-30 18:05:55 +02:00
Marius 77fe206084
Update stookalert to use DEVICE_CLASS_SAFETY constant (#39438)
asper discussion here https://github.com/home-assistant/core/pull/39310#issuecomment-681968732
2020-08-30 18:01:04 +02:00
springstan 22b8d43bf5
Update tesla to use CoordinatorEntity (#39436) 2020-08-30 10:48:15 -05:00
springstan e701001c5f
Update poolsense to use CoordinatorEntity (#39435) 2020-08-30 10:47:45 -05:00
springstan 1e97ca14f1
Update accuweather to fully use CoordinatorEntity (#39431) 2020-08-30 10:38:26 -05:00
springstan e984801104
Update iammeter to use CoordinatorEntity (#39423)
* Update iammeter to use CoordinatorEntity

* Remove async_will_remove_from_hass and async_added_to_hass
2020-08-30 10:02:55 -05:00
J. Nick Koston 0a389a4651
Update sharkiq to use CoordinatorEntity (#39427)
* Update sharkiq to use CoordinatorEntity

Fix pylint

* revert
2020-08-30 09:52:48 -05:00
springstan 70c241b51b
Fix pylint erros for sharkiq (#39428) 2020-08-30 09:51:50 -05:00
J. Nick Koston 4a21b1f589
Update smart_meter_texas to use CoordinatorEntity (#39426) 2020-08-30 16:43:30 +02:00
springstan a1d48ad1ec
Update juicenet to use CoordinatorEntity (#39424) 2020-08-30 09:38:15 -05:00
springstan baf5750425
Update gios to use CoordinatorEntity (#39421) 2020-08-30 09:37:03 -05:00
springstan 186c13f1ab
Update eafm to use CoordinatorEntity (#39420) 2020-08-30 09:17:59 -05:00
Chris Talkington 16a0bd7ff3
Update ipp to use CoordinatorEntity (#39412)
* update ipp to use CoordinatorEntity

* Update homeassistant/components/ipp/__init__.py

Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>

* Solve isort and black

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-08-30 09:07:36 -05:00
springstan 152b6c2d1a
Update accuweather to use CoordinatorEntity (#39408) 2020-08-30 09:06:38 -05:00
springstan 29c1f873eb
Update brother to use CoordinatorEntity (#39418) 2020-08-30 09:02:12 -05:00
springstan 64513c8c9a
Update airvisual to use CoordinatorEntity (#39417) 2020-08-30 09:01:19 -05:00
springstan 4294d10789
Format sharkiq with black (#39422) 2020-08-30 08:56:59 -05:00
springstan be489e83a1
Update speedtestdotnet to use CoordinatorEntity (#39404) 2020-08-30 08:50:33 -05:00
Chris Talkington 5dfb043896
update nzbget to use CoordinatorEntity (#39406) 2020-08-30 08:47:28 -05:00
Andrew Marks 3d1ff5b8d0
Add sharkiq integration for Shark IQ robot vacuums (#38272)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-08-30 15:26:11 +02:00
Paulus Schoutsen ab7b42c022
Google: Recover from an entity raising while serializing query (#39381)
Co-authored-by: Joakim Plate <elupus@ecce.se>
2020-08-30 15:19:56 +02:00
J. Nick Koston 854e33025b
Update nexia to use CoordinatorEntity (#39391)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-08-30 14:57:02 +02:00
springstan b3ec3d0baf
Update atag to use CoordinatorEntity (#39414) 2020-08-30 14:42:45 +02:00
Chris Talkington 108e2ec1ba
Update roku to use CoordinatorEntity (#39405) 2020-08-30 14:42:31 +02:00
springstan 4425c3aea2
Update airly to use CoordinatorEntity (#39413) 2020-08-30 14:41:39 +02:00
J. Nick Koston 0f5733ac59
Update cert_expiry to use CoordinatorEntity (#39397) 2020-08-30 14:41:18 +02:00
J. Nick Koston 21f1875816
Update updater to use CoordinatorEntity (#39396) 2020-08-30 14:40:55 +02:00
J. Nick Koston 2525d319a3
Update nut to use CoordinatorEntity (#39394) 2020-08-30 14:40:26 +02:00
J. Nick Koston 4e876cb473
Update myq to use CoordinatorEntity (#39393) 2020-08-30 14:40:00 +02:00
J. Nick Koston a4f475245c
Update griddy to use CoordinatorEntity (#39392) 2020-08-30 14:39:07 +02:00
J. Nick Koston f7d1cfb625
Update powerwall to use CoordinatorEntity (#39389) 2020-08-30 14:37:11 +02:00
Paulus Schoutsen ba75856f2b
Do not break Alexa sync when encounter bad entity (#39380) 2020-08-30 14:36:00 +02:00
Ville Skyttä b4db9f615d
Fix huawei_lte duplicate device registry identifiers (#39409)
Regression in 3c0f766933

Refs https://github.com/home-assistant/core/pull/38925
2020-08-30 14:27:56 +02:00
springstan c0c6a457bd
Update air_quality to use CoordinatorEntity (#39410) 2020-08-30 14:26:03 +02:00
Maciej Bieniek 0cffba77cf
Add more sensors to the Shelly integration (#39368) 2020-08-30 14:18:35 +02:00
Maciej Bieniek 4aa8b6cad8
Add basic binary_sensor support to Shelly (#39365) 2020-08-30 14:16:41 +02:00
Chris Talkington ef13da5555
Fix marytts sync requests within event loop (#39399) 2020-08-30 06:19:51 -05:00
Marius 87425d4ab1
Add device_class safety to synology_dsm storage binary_sensors (#39310)
* add device_class: safety to storage binary_sensors

* Update binary_sensor.py

* Update homeassistant/components/synology_dsm/binary_sensor.py

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

* Update binary_sensor.py

* Import device_class Safety

from homeassistant.components.binary_sensor

* Update binary_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-30 11:08:57 +02:00
J. Nick Koston dda4cf4d58
Tune logbook performance to accomodate recent changes (#39348) 2020-08-30 09:20:31 +02:00
Jeff Irion ad0d3b4848
Improve handling of exceptions in Android TV (#39229)
* Close the ADB connection when there is an exception

* Add a test

* Split a comment onto two lines

* Fix test ('async_update' -> 'async_update_entity')

* 'close' -> 'Close'
2020-08-29 21:56:25 -05:00
HomeAssistant Azure 904f5c4346 [ci skip] Translation update 2020-08-30 00:03:17 +00:00
Franck Nijhof 800cf6c8c0
Revert "Support selecting http vs https protocols for qvrpro (#38951)" (#39385)
This reverts commit 526c418e1e.
2020-08-29 17:45:54 -05:00
Anders Melchiorsen 79252c06b2
Upgrade eternalegypt to 0.0.12 (#39386) 2020-08-30 00:43:09 +02:00
Eugene Prystupa 867d5088e3
Fix bond fan.turn_on with OFF speed (#39387) 2020-08-29 17:03:19 -05:00
Chris Talkington 7469f57a7b
Add config flow to nzbget (#38938)
* work on config flow

* Update test_init.py

* work on config flow

* Update test_config_flow.py

* Update test_config_flow.py

* Update __init__.py

* Update test_config_flow.py

* Update __init__.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update config_flow.py

* Update __init__.py

* Update __init__.py

* Create coordinator.py

* Update __init__.py

* Update sensor.py

* Update __init__.py

* Update .coveragerc

* Update coordinator.py

* Update __init__.py

* Update coordinator.py

* Update __init__.py

* Update coordinator.py

* Update config_flow.py

* Update __init__.py

* Update coordinator.py

* Update __init__.py

* Update test_config_flow.py

* Update coordinator.py

* Update test_config_flow.py

* Update test_init.py

* Update homeassistant/components/nzbget/coordinator.py

* Update test_config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-29 16:47:00 -05:00
J. Nick Koston 54ef16f01a
Reload notify platforms concurrently with asyncio.gather (#39384) 2020-08-29 22:23:57 +02:00
Xiaonan Shen 22a123fd4b
Support acpartner in aqara discovery (#37926) 2020-08-29 11:34:25 -05:00
Berni Moses a9b611d3ed
Bump python-temescal to 0.3 for lg_soundbar (#39379) 2020-08-29 16:22:37 +02:00
Paulus Schoutsen 8302a7879e
Catch bad devices when Google Sync (#39377) 2020-08-29 13:09:50 +02:00
Ville Skyttä 6ae9399237
Upgrade isort to 5.4.2 (#37939) 2020-08-29 08:23:55 +02:00
Ville Skyttä 1bf2c4d976
Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
pbalogh77 6348f130bc
Add basic lock support for fibaro (#38962)
Added very basic support for locks in the Fibaro integration.
2020-08-28 21:16:02 -05:00
HomeAssistant Azure 989a040b67 [ci skip] Translation update 2020-08-29 00:03:59 +00:00
Aaron Godfrey 16ad8cf720
Fix todoist calendar events (#39197)
Updated the calendar event dict to contain a `summary` key so that the
title will display on the calendar panel.  Also update the start/end
date to not include time information if the event is all day so that it
renders as an all day event on the calendar panel.
2020-08-28 16:43:40 -05:00
cgtobi 755ddf1a94
Add Netatmo camera light service (#39354)
* Add camera light service

* Move service to camera

* Review
2020-08-28 16:09:07 -05:00
Daniel Shokouhi d587f134ca
Reload mobile app notify service upon device name change, add device name to all webhook logs (#39364)
* Add device name to all webhook logs to help with multiple devices

* Reload notifications when we update the registration, update from rebase

* Make hassfest happy

* Adjust caplog test to accomodate log message change

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-28 15:13:43 -05:00
Diogo Gomes c163d4a4b5
bump pymediaroom (#39360) 2020-08-28 15:12:42 -05:00
Teemu R 94c474eab2
Add missing status mappings for xiaomi_miio (#39357) 2020-08-28 15:09:46 -05:00
Rob Bierbooms 5658a1efec
Increase test coverage for rfxtrx integration (#39340)
* Increase switch coverage

* Increase binary sensor coverage

* Final improvements

* Remove debug statement

* Adjust test duplicate cover

* Remove None return test

* Assert on length of conf_entries

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-28 15:05:11 -05:00
Phil Bruckner b315df2118
Reduce automation state changes by using script helper's last_triggered attribute (#39323) 2020-08-28 14:51:15 -05:00
J. Nick Koston 92c06f0818
Ensure mobile_app notifications get re-registered after adding,removing,adding (#39362) 2020-08-28 14:08:09 -05:00
Phil Bruckner a99efcb5c2
Fix sun integration vulnerability to sudden large clock changes (#39335)
* Fix sun integration vulnerability to sudden large clock changes

* Fix update_sun_position as well
2020-08-28 13:09:43 -05:00
J. Nick Koston 57848cdf35
Add the ability to reload ping platforms from yaml (#39344) 2020-08-28 12:40:30 -05:00
J. Nick Koston 85869be2d8
Unregister mobile_app notification services when a device is removed (#39359) 2020-08-28 12:37:19 -05:00
Anna Tikhomirova 33a05541a4
Simplify mobile app debugging by adding sender device name (#38518)
* Simplify mobile app debugging by adding sender device name.

* Reformatted webhook.py with black
2020-08-28 12:36:59 -05:00
J. Nick Koston 3377f6b12a
Register mobile_app notification services when a new device is added (#39356)
* Register mobile_app notification services when a new device is added

* targets and base service use their own patterns to generate the name
2020-08-28 12:18:02 -05:00
Paulus Schoutsen 4b8217777e
Add basic light and sensor support to Shelly (#39288)
* Add basic light platform

* Add sensor support

* Bump aioshelly to 0.2.1

* Lint

* Use UNIT_PERCENTAGE

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* Format sensor.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2020-08-28 17:33:34 +02:00
Jin 4b5d0915a9
Add support for hmi208(xiaomi plug BLE) (#39306)
As this plug has already been supported in [python-miio v5.1](https://github.com/rytilahti/python-miio/releases/tag/0.5.1).
Changes towards xiaomi-miio made for fully supporting this device in HA.
2020-08-28 17:24:14 +02:00
J. Nick Koston d2195e2b37
Add support for reloading min_max from yaml (#39327)
* Add support for reloading min_max from yaml

* git add
2020-08-28 10:23:19 -05:00
Phil Bruckner e6141ae558
Add description of what caused an automation trigger to fire (#39251)
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-28 17:02:12 +02:00
Paulus Schoutsen 5217139e0b
Allow exposing domains in cloud (#39216) 2020-08-28 16:49:17 +02:00
J. Nick Koston 414a59ae9f
Add the ability to reload homekit from yaml (#39326) 2020-08-28 16:46:45 +02:00
J. Nick Koston 400741006b
Add the ability to reload generic platforms from yaml (#39289) 2020-08-28 16:44:51 +02:00
J. Nick Koston 2109444ba5
Update time triggers to use async_track_state_change_event (#39338)
This was one of the ones missed in the
async_track_state_change to
async_track_state_change_event conversion.
2020-08-28 16:32:05 +02:00
J. Nick Koston 7c191388a9
Use icmplib for ping when available (#39284)
* Use icmplib for ping when available

* Update homeassistant/components/ping/binary_sensor.py

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

* Revert "Update homeassistant/components/ping/binary_sensor.py"

This reverts commit 618f42512a.

* move it up so its easier to see

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-08-28 08:50:09 -05:00
Ville Skyttä b4bac0f7a0
Exception chaining and wrapping improvements (#39320)
* Remove unnecessary exception re-wraps

* Preserve exception chains on re-raise

We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.

The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.

Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.

* Fix mistaken re-wrap in homematicip_cloud/hap.py

Missed the difference between HmipConnectionError and
HmipcConnectionError.

* Do not hide original error on plex new cert validation error

Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Joakim Plate d768fd4de9
Bump arcam fmj with no install requires on asyncio (#39353) 2020-08-28 13:06:25 +02:00
Chris Talkington ab90ea7884
Fix black on homematicip_cloud binary_sensor (#39351) 2020-08-28 00:47:27 -05:00
J. Nick Koston f914625b8a
Add the ability to reload history_stats platforms from yaml (#39337)
* Add the ability to reload history_stats platforms from yaml

* Increase coverage and cleanup

* Fix coverage

* services.yaml
2020-08-28 00:22:43 -05:00
SukramJ b5c2c9ec9b
Add device attribute for homematicip_cloud rotary handle (#39144) 2020-08-28 00:08:37 -05:00
J. Nick Koston 77490287e9
Add the ability to reload generic_thermostat platforms from yaml (#39291) 2020-08-27 23:59:49 -05:00
J. Nick Koston f449620d38
Add the ability to reload filesize platforms from yaml (#39347) 2020-08-27 23:53:27 -05:00
J. Nick Koston 0db5bb27a8
Add the ability to reload trend platforms from yaml (#39341) 2020-08-27 23:50:28 -05:00
Bill (William) O'Neill 526c418e1e
Support selecting http vs https protocols for qvrpro (#38951)
* Support selecting http vs https protocols for qvrpro

* Make protocol selection limited to http or https
2020-08-27 22:22:28 -05:00
Greg Dowling 637fdf72ca
Improve volume handling for Roon (#39119)
* Handle players without volume attribute.

* Refactor volume and now_playing error handling,

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* Review suggestions.

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-27 22:18:09 -05:00
On Freund b14af3e727
Add Custom mapping of Risco states (#39218)
* Custom mapping of Risco states

* More informative error log

* Add alternative Risco terms

* Black formatting
2020-08-27 21:23:01 -05:00
On Freund 24db31fa28
Add (un)bypass services to Risco (#39292)
* Add (un)bypass services to Risco

* Simplify service registration
2020-08-27 20:39:27 -05:00
jgrob1 a83c778c4f
Bump rflink to 0.0.54 (#39342)
* Update manifest.json

* Update requirements_all.txt

* Update requirements_test_all.txt
2020-08-27 20:35:33 -05:00
HomeAssistant Azure 68ba1d8790 [ci skip] Translation update 2020-08-28 00:05:07 +00:00
J. Nick Koston ca05f8928d
Switch duckdns to use async_call_later (#39339) 2020-08-28 00:10:02 +02:00
Paul Daumlechner b1444ffefb
Bump zeroconf to 0.28.2 (#39322)
* Bump zeroconf to 0.28.2

* Requirements updated
2020-08-27 14:47:15 -05:00
J. Nick Koston f4f8aa3e52
Prevent duckdns from consuming 100% cpu when time abruptly moves forward (#39334) 2020-08-27 21:17:52 +02:00
Oncleben31 90ac426a54
Meteo france "next_rain" attributes rework (#39092)
* Improve next_rain sensor attributes

* Add log message to identify missing condition

* Add a condtion

* Set the coordinator for 1 hour rain forecast in English

* Attribut dict keys shorten

* reverse transalate the API results for next rain

* Use f string for the keys in the dict

* Remove Logging from state property

* Remove other logging from state property
2020-08-27 21:08:39 +02:00
Erik Montnemery 4e39a00b3d
Use boolean for mqtt fan state (#39332) 2020-08-27 21:04:58 +02:00
Charles Garwood c2365b8c0f
Add get_nodes command to OZW websocket api (#39317)
* Add get_nodes command to OZW websocket api

* Fix black

* Use constants for get_nodes and get_node

* Missed a couple constants
2020-08-27 14:00:22 -04:00
cgtobi c8d49a8adf
Add Spotify media browser capability (#39240)
Co-authored-by: Tobias Sauerwein <cgtobi@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-08-27 17:00:36 +02:00
matgad b880c33043
Bump zigpy-cc version (#39318) 2020-08-27 09:36:35 -04:00
Martin Hjelmare 55283df705
Remove protobuf requirement from tensorflow manifest (#39316) 2020-08-27 08:54:43 -04:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
João Gabriel 0d7eec710c
Fix Panasonic Viera config flow and state update (#39303) 2020-08-27 13:51:18 +02:00
Martin Hjelmare b0a2c8d430
Bump hangups to 0.4.10 (#39312) 2020-08-27 13:26:46 +02:00
HomeAssistant Azure 195d4b6897 [ci skip] Translation update 2020-08-27 00:04:55 +00:00
Paulus Schoutsen 6348884735
Allow passing in user id instead of username to change password (#39266) 2020-08-26 23:37:33 +02:00
Marvin Wichmann a2651845f3
Centralize knx config and update xknx to 0.12.0 (#39219)
* Refactor KNX integration to centralize configuration yaml (#39189)

* Updates for xknx 0.12.0 (#38880)
2020-08-26 18:03:03 +02:00
Paulus Schoutsen 51a63c1fc4
Drop last bits of asyncio.coroutine (#39280) 2020-08-26 16:57:52 +02:00
J. Nick Koston dc84196202
Add the ability to reload statistics platforms from yaml (#39268) 2020-08-26 14:52:19 +02:00
Paulus Schoutsen e96d8a961c
Block typing from being installed (#37707) 2020-08-26 14:51:41 +02:00
Phil Bruckner 4ff376cdd6
Add timestamp option for input_datetime.set_datetime (#39121) 2020-08-26 11:28:30 +02:00
Maciej Bieniek 2568932c1c
Bump brother library to version 0.1.15 (#39226) 2020-08-26 10:55:57 +02:00
Felipe Martins Diel 067efc7805
Remove services.yaml from the Broadlink integration (#39261) 2020-08-26 10:47:44 +02:00
Marty Zalega e065673d7b
Version bump panasonic_viera to 0.3.6 (#39269)
This version fixes the issue of mishandling an error when requesting a session id
2020-08-26 10:32:23 +02:00
Paulus Schoutsen 2a9da208d4
Allow disabling integrations in manifest, block uuid package being installed and disable ezviz (#38444) 2020-08-26 10:20:14 +02:00
J. Nick Koston eaac00acfc
Add the ability to reload filter platforms from yaml (#39267)
* Add the ability to reload filter platforms from yaml

* force in memory db

* fix listener leak on un-load
2020-08-25 20:55:45 -05:00
J. Nick Koston 215e3f2dab
Add the ability to reload command_line platforms from yaml (#39262) 2020-08-25 19:52:36 -05:00
J. Nick Koston 5018e53b33
Add the ability to reload the rest platforms from yaml (#39257)
* Add the ability to reload rest platforms from yaml

* Revert changes to notify as these will be done in another pass
2020-08-25 19:05:29 -05:00
SukramJ 758c0adb5e
Rename entity base class for HMIPC (#39243) 2020-08-26 01:55:55 +02:00
J. Nick Koston 810df38f0d
Add the ability to reload light/cover groups from yaml (#39250)
* Add the ability to reload light/cover groups from yaml

Update previous usage to reduce code duplication.

* Fix conflict from rebase
2020-08-25 18:13:43 -05:00
J. Nick Koston e109b04efe
Add api to reload config entries (#39068) 2020-08-26 00:59:22 +02:00
bsmappee 11f121b008
Implement local discovery of Smappee series-2 devices and improvements (#38728)
* prepare local api support for Smappee2-series

* Series-2 devices are now supported

* remove switch scan_interval
2020-08-26 00:37:53 +02:00
J. Nick Koston 90842fcb84
Support reloading the universal platform (#39248) 2020-08-26 00:25:15 +02:00
J. Nick Koston 63ebea1706
Ensure the context is passed to group changes (#39221) 2020-08-26 00:22:10 +02:00
Daniel Hjelseth Høyer 7bc273b182
Remove yr integration after a request from yr.no (#39247) 2020-08-25 21:18:45 +02:00
Yuxiang Zhu 19cc168433
Add HomeKit Controller heater-cooler devices (#38979)
Some new HomeKit climate devices, like XiaoMi Air Conditioning Controller P3 are heater-cooler devices rather than
thermostat devices. This commit adds support for the heater-cooler class via homekit_controller.
2020-08-25 17:56:01 +01:00
Chris Talkington ab6fb5cb77
Ensure unique ids are generated for surepetcare (#39196)
* ensure unique ids are generated for surepetcare

* Create test_binary_sensor.py

* work on tests

* Update test_binary_sensor.py

* Update __init__.py

* Update __init__.py

* Update test_binary_sensor.py

* Update test_binary_sensor.py

* Update test_binary_sensor.py

* Update test_binary_sensor.py

* Update test_binary_sensor.py

* Update test_binary_sensor.py

* Update __init__.py
2020-08-25 11:34:14 -05:00
Erik Montnemery 114a7226d6
Wait before sending MQTT birth message (#39120)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-25 16:42:24 +02:00
Paulus Schoutsen 415213a325
Add support for attributes in state/numeric state trigger (#39238) 2020-08-25 16:21:16 +02:00
Pascal Vizeli 342e84e550
Fix TTS languange characters (#39211) 2020-08-25 14:23:21 +02:00
Paulus Schoutsen 9979e465aa
Fix hassio auth data (#39244)
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-25 14:22:50 +02:00
Paulus Schoutsen 13df3bce1b
Allow owner users to change password of any user (#39242) 2020-08-25 13:49:32 +02:00
javicalle ef35eea0f6
Remove 'entity_id' from ToggleRflinkLight (#37992)
Remove `entity_id` overwrite from `ToggleRflinkLight` class
2020-08-25 13:49:00 +02:00
Akın Ömeroğlu 7d4a9ac65a
Bump python-temascal to 0.2 for lg_soundbar (#39213) 2020-08-25 09:32:48 +02:00
J. Nick Koston 3a7620bd08
Update sense icon mappings (#39225) 2020-08-24 21:35:48 -05:00
Paulus Schoutsen 2a1fe9d29a
Add websocket trigger/condition commands (#39109) 2020-08-24 23:01:57 +02:00
Bram Kragten d5193e64de
Updated frontend to 20200824.0 (#39224) 2020-08-24 14:33:58 -05:00
J. Nick Koston 6b7a7939d2
Include the first seen context data in the logbook api (#39194)
* Include the context_entity_id in the logbook api

context_entity_id is the first entity seen during
a time period that includes the context

* update test

* more of them

* include friendly name

* pylint wants a ternary

* Refactor

* performance

* fix homekit context

* Fix self describing events

* Fix external_events
2020-08-24 12:44:40 -05:00
Erik Montnemery b1c0d8fb6c
Minor cleanup of MQTT ACK handling (#39217) 2020-08-24 17:28:07 +02:00
Bram Kragten 28332f23b3
Don't sort keys when dumping json and yaml (#39214) 2020-08-24 16:58:27 +02:00
Leonardo Figueiro a47f73244c
Add Wilight integration with SSDP (#36694)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-24 14:15:07 +02:00
Paulus Schoutsen e61f7f0274
100% test coverage for Shelly config flow (#39209) 2020-08-24 13:39:23 +02:00
Paulus Schoutsen ca2bc9906d
Add Shelly integration (#39178) 2020-08-24 12:43:31 +02:00
jjlawren 6d95ee7a00
Websocket media browsing for Plex (#35590)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-24 12:41:01 +02:00
Erik Montnemery 3df67ff9e1
Fix race when waiting for MQTT ACK (#39193) 2020-08-24 11:13:12 +02:00
Franck Nijhof e17c87ef72
Upgrade debugpy to 1.0.0rc2 (#39195) 2020-08-24 10:45:44 +02:00
Chris 7462d140af
Trim CW from RGB when not supported in ozw (#39191)
* Trim the CW value if CW isn't supported

* Trim CW from white level as well
2020-08-23 19:20:37 -04:00
Ernst Klamer 2e8506de80
Add unique_id to solarlog sensors (#39186)
* Add unique_id to solarlog

Add unique_id to solarlog sensors

* Resolve suggested changes

Resolve suggested changes

* Update homeassistant/components/solarlog/sensor.py

Ok, thanks for the explanation.

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-23 12:58:43 -05:00
On Freund 15c101e85d
Add pin code support to the Risco integration (#39177)
* Pin code support for Risco

* Remove unused parameter

* Fix imports

* Fix typo

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-23 12:34:30 -05:00
Paul Madden 04c1c1a279
Support Rainbow radar site in BOM camera (#39129) 2020-08-23 11:46:11 -05:00
Fabian Affolter c86c522eb1
Upgrade py-cpuinfo to 7.0.0 (#39155) 2020-08-23 12:44:11 -04:00
Fabian Affolter 7874711936
Upgrade discogs_client to 2.3.0 (#39164)
* Upgrade discogs_client to 2.3.0

* Fix pylint issue
2020-08-23 11:41:11 -05:00
Fritiof Hedman 961f36c679
Add ZwaveStringSensor to OZW integration (#38676)
* Add ZwaveStringSensor to OZW integration

* Remove unnecessary new line

* Set enabled default to false for ZwaveStringSensor

* Add missing decorator for property

* Add a test for ZwaveStringSensor

* Also test state of ZWaveStringSensor

* Remove entity type check
2020-08-23 15:16:26 +02:00
J.P. Hutchins 62b1f23328
Allow multiple config entries per host for transmission (#39127)
* Allow multiple integrations per host (check port) #36605

* Add test for allow multiple config entries per host for transmission
2020-08-23 13:29:44 +02:00
Fabian Affolter f295684c10
Upgrade TwitterAPI to 2.5.13 (#39157) 2020-08-23 12:27:53 +02:00
Fabian Affolter d31dea50bb
Upgrade discord.py to 1.4.1 (#39150) 2020-08-23 12:11:59 +02:00
Fabian Affolter 2bf31dc5b3
Upgrade mutagen to 1.45.1 (#39166) 2020-08-23 12:08:52 +02:00
J. Nick Koston b68c5cec94
Convert bayesian binary_sensor to use async_track_template_result (#39174)
Add coverage to reach 100% line coverage
2020-08-23 09:59:26 +02:00
J. Nick Koston 3cc099af80
Make emulated_hue upnp responder async (#39126) 2020-08-23 09:50:59 +02:00
On Freund 3198233b8f
Add binary sensors to Risco integration (#39137)
* Add binary sensors to Risco integration

* Minor cleanups

* RiscoEntity base class

* Platinum score

* Remove alarm parameter in _setup_risco

* Avoid zones and partitions sharing unique ids
2020-08-22 18:30:26 -05:00
Fabian Affolter 73328dab5e
Upgrade psutil to 5.7.2 (#39149) 2020-08-22 18:18:05 -05:00
J. Nick Koston 9baf3ff706
Update universal media_player to use async_track_template_result (#39054)
* Update universal media_player to use async_track_template_result

* Review comments and add missing test cover
2020-08-22 18:12:53 -05:00
Fabian Affolter bd136fa79a
Upgrade sqlalchemy to 1.3.19 (#39167) 2020-08-22 18:09:36 -05:00
ktownsend-personal fa09a93cfe
add zone status attribute so we can know if queued (#39133)
Before this proposed change, all of the zones related to a running program turn "on", but it's not possible to know which zone is actually running (vs. queued). Adding the mapped state values (they are the same as program status values) as an attribute will allow inspection of all 3 states.
2020-08-22 15:19:20 -06:00
Fabian Affolter 69de68c025
Upgrade slixmpp to 1.5.2 (#39169) 2020-08-22 16:31:39 -04:00
Fabian Affolter 7ca8e9077a
Upgrade python-whois to 0.7.3 (#39153) 2020-08-22 14:09:00 -05:00
Fabian Affolter a1845e9ef0
Upgrade sendgrid to 6.4.6 (#39148) 2020-08-22 14:02:12 -05:00
Fabian Affolter 1f5b948ead
Upgrade connect-box to 0.2.7 (#39162) 2020-08-22 13:57:28 -05:00
Fabian Affolter 644e826ca7
Upgrade praw to 7.1.0 (#39152) 2020-08-22 14:53:01 -04:00
Fabian Affolter 41ba1dff71
Upgrade beautifulsoup4 to 4.9.1 (#39158) 2020-08-22 14:48:25 -04:00
On Freund f075742a86
Address Kodi code review follow up (#39104)
* Code review follow up

* Update config_flow.py

* Update config_flow.py

* Update strings.json

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update util.py

* Update test_config_flow.py

* Update config_flow.py

* Update util.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update util.py

* Update test_config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update test_config_flow.py

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-22 13:40:12 -05:00
Franck Nijhof 3c1c6069da
Fix Sentry user context and system info (#39130) 2020-08-22 19:51:39 +02:00
On Freund cdb6161d3d
Add risco options flow (#39154) 2020-08-22 12:15:03 -05:00
Fabian Affolter 4af90e41ce
Upgrade pylast to 3.3.0 (#39151) 2020-08-22 12:15:30 -04:00
Fabian Affolter e909596587
Upgrade volkszaehler to 0.1.3 (#39147) 2020-08-22 12:12:09 -04:00
Raman Gupta 55c71b5e83
Fix Vizio pylance error by using schema extend instead of dict update (#39139)
* fix pylance error by using schema extend instead of dict update

* fix bug
2020-08-22 12:09:20 -04:00
On Freund e3ce699d75
Risco code review follow ups (#39143) 2020-08-22 15:54:12 +02:00
Erik Montnemery 18047726b6
Remove ending period from cast log 2020-08-22 09:01:17 +02:00
On Freund 1b8d9f7cc4
Add Risco integration (#36930)
* Risco integration

* Fix lint errors

* Raise ConfigEntryNotReady if can't connect

* Gracefully handle shutdown

* pass session to pyrisco

* minor change to init

* Fix retries

* Add exception log

* Remove retries

* Address code review comments

* Remove log
2020-08-21 23:49:09 -05:00
J. Nick Koston 83b9c6188d
Make template entities reloadable (#39075)
* Make template entities reloadable

* Address review items
2020-08-21 18:31:48 -05:00
Charles Garwood 993088d26e
Add OZW network_statistics websocket command (#39124)
* Add network_statistics websocket command

* Add tests
2020-08-21 22:52:03 +02:00
jjlawren b0f214bd9c
Bump plexapi to 4.1.0 (#39118) 2020-08-21 15:03:44 -05:00
Graham Wetzler 32db1d1eb2
Improve tests and config flow for Smart Meter Texas (#39089)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-21 19:20:42 +02:00
Charles Garwood 52d949ec90
Tweak OZW Websocket Instance/Network Responses (#39107) 2020-08-21 18:48:56 +02:00
Erik Montnemery 91ba8c0ef0
Warn when casting of tts fails (#38603)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-21 17:17:36 +02:00
Erik Montnemery ee043d8614
Wait for broker to ACK MQTT operations (#39051)
* Wait for broker to ACK MQTT operations

* Deduplicate new code

* Fix tests

* Improve test

* Don't hold PAHO lock when waiting for ACK

* Fix tests

* Add constant for ACK timeout
2020-08-21 17:00:13 +02:00
Aaron Bach 4a7c181e91
Allow Slack notifications to change username/icon on the fly (#39091)
* Allow Slack notifications to change username/icon on the fly

* Code review
2020-08-21 08:37:30 -06:00
Eric Severance ed68b15a31
Support unknown mime type for image attachments in html email (#38682) 2020-08-21 08:37:08 -06:00
Eric Severance f01634f75c
Add wemo 'Socket' model for Homekit discovery (#38765)
Corresponds with the model WSP080 WiFi Smart Plug
https://www.belkin.com/us/p/P-WSP080/

```
[homeassistant.components.zeroconf] Discovered new device Wemo Plug 603._hap._tcp.local. {'host': '10.234.200.95', 'port': 54664, 'hostname': 'Wemo Plug 603.local.', 'type': '_hap._tcp.local.', 'name': 'Wemo Plug 603._hap._tcp.local.', 'properties': {'_raw': {'c#': b'2', 'ff': b'2', 'id': b'63:30:B3:10:BA:B1', 'md': b'Socket', 'pv': b'1.1', 's#': b'1', 'sf': b'1', 'ci': b'7', 'sh': b'AD4l7g=='}, 'c#': '2', 'ff': '2', 'id': '63:30:B3:10:BA:B1', 'md': 'Socket', 'pv': '1.1', 's#' : '1', 'sf': '1', 'ci': '7', 'sh': 'AD4l7g=='}}
```
2020-08-21 08:36:20 -06:00
Anders Melchiorsen 1ea21b7011
Clean up more netgear_lte resources on shutdown (#39065) 2020-08-21 09:23:03 -05:00
kbickar 2ec546db3d
Fix for exception when checking if fan without speed is on (#39096)
* Fix for exception when checking if fan without speed is on

* Organized imports

* Space
2020-08-21 08:20:28 -06:00
Markus Bong 00b05d764d
correct naming (#39102) 2020-08-21 08:17:29 -06:00
Aaron Bach 31e0ddaec5
Update Notion to use a DataUpdateCoordinator (#38978)
* Update Notion to use a DataUpdateCoordinator

* isort

* Bug
2020-08-21 08:10:12 -06:00
J. Nick Koston 6fd61be276
Update template triggers to use async_track_template_result (#39059)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-08-21 15:02:24 +02:00
J. Nick Koston 796d74886e
Simplify template integration entities (#39083) 2020-08-21 14:33:53 +02:00
J. Nick Koston 5a9246468e
Prevent invalid data from being passed to zeroconf (#39009) 2020-08-21 14:31:17 +02:00
J. Nick Koston 7c346c2f7c
Skip the sqlite quick_check on clean restarts (#38972) 2020-08-21 14:20:46 +02:00
Paulus Schoutsen 05d54a60b0
Deprecate optional script context (#39034)
Co-authored-by: Phil Bruckner <pnbruckner@gmail.com>
2020-08-21 14:17:47 +02:00
J. Nick Koston f560256546
Update websocket api to use async_track_template_result (#39057) 2020-08-21 14:04:29 +02:00
J. Nick Koston 7878d97588
Use SimpleQueue for recorder (#38967)
Now that python 3.7 is the minimum supported version, we can
use the more efficient SimpleQueue in the recorder as it does
not have to use threading.Lock
2020-08-21 13:54:13 +02:00
Martin Hjelmare 3cea3eb6e5
Remove dead ozw discovery code (#39098) 2020-08-21 12:44:40 +02:00
Phil Bruckner 76ead858cf
Add wait_for_trigger script action (#38075)
* Add wait_for_trigger script action

* Add tests

* Change script integration to use config validator
2020-08-21 11:38:25 +02:00
On Freund c1ed584f2d
Add config flow to kodi (#38551)
* Add config flow to kodi

* Fix lint errors

* Remove entry update listener

* Create test_init.py

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* Update __init__.py

* fix indentation

* Apply suggestions from code review

* Apply suggestions from code review

* Update tests/components/kodi/__init__.py

* Fix init test

* Fix merge

* More review changes

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* Fix black formatting

* Fix Flake8

* Don't store CONF_ID

* Fall back to entry id

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update __init__.py

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-20 23:16:58 -05:00
thrust15 e0e31693f5
Update DOODS name (#38997)
https://github.com/home-assistant/home-assistant.io/pull/11703
I was working on the DOODS documentation, and I noticed above PR and the comment by Frenck. So I updated the name.
2020-08-20 14:52:02 -04:00
Andrey Kupreychik 8500e3c5a8
Prefer mac for onvif device identifier (#38864) 2020-08-20 14:39:04 -04:00
Jc2k 96a1c80626
Pre-create homekit_controller device registry entries when processing entity map (#39036) 2020-08-20 19:12:36 +01:00
Bram Kragten 3182dac1eb
Generate ID when not provided (#39082) 2020-08-20 14:01:35 -04:00
Bram Kragten af6ca7a4d3
Update frontend to 20200820.0 (#39085) 2020-08-20 17:48:24 +02:00
Felipe Martins Diel a2c1f08c8c
Implement config flow in the Broadlink integration (#36914)
* Implement config flow in the Broadlink integration

* General improvements to the Broadlink config flow

* Remove unnecessary else after return

* Fix translations

* Rename device to device_entry

* Add tests for the config flow

* Improve docstrings

* Test we do not accept more than one config entry per device

* Improve helpers

* Allow empty packets

* Allow multiple config files for switches related to the same device

* Rename mock_device to mock_api

* General improvements

* Make new attempts before marking the device as unavailable

* Let the name be the template for the entity_id

* Handle OSError

* Test network unavailable in the configuration flow

* Rename lock attribute

* Update manifest.json

* Import devices from platforms

* Test import flow

* Add deprecation warnings

* General improvements

* Rename deprecate to discontinue

* Test device setup

* Add type attribute to mock api

* Test we handle an update failure at startup

* Remove BroadlinkDevice from tests

* Remove device.py from .coveragerc

* Add tests for the config flow

* Add tests for the device

* Test device registry and update listener

* Test MAC address validation

* Add tests for the device

* Extract domains and types to a helper function

* Do not patch integration details

* Add tests for the device

* Set device classes where appropriate

* Set an appropriate connection class

* Do not set device class for custom switches

* Fix tests and improve code readability

* Use RM4 to test authentication errors

* Handle BroadlinkException in the authentication
2020-08-20 17:30:41 +02:00
J. Nick Koston eb4f667a1a
Remove unused code from the template integration (#39048)
* Convert template lock to use async_track_template_result

* Convert template switch to use async_track_template_result

* Convert template fan to use async_track_template_result

* Convert template binary_sensor to use async_track_template_result

Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com>

* Convert template cover to use async_track_template_result

* Convert template light to use async_track_template_result

* Convert template vacuum to use async_track_template_result

* Remove unused code from the template integration

Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com>
2020-08-20 09:30:56 -05:00
J. Nick Koston 5db90478f3
Convert template vacuum to use async_track_template_result (#39047)
* Convert template lock to use async_track_template_result

* Convert template switch to use async_track_template_result

* Convert template fan to use async_track_template_result

* Convert template binary_sensor to use async_track_template_result

Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com>

* Convert template cover to use async_track_template_result

* Convert template light to use async_track_template_result

* Convert template vacuum to use async_track_template_result

Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com>
2020-08-20 09:30:31 -05:00
J. Nick Koston b4f0485be2
Convert template light to use async_track_template_result (#39045)
* Convert template lock to use async_track_template_result

* Convert template switch to use async_track_template_result

* Convert template fan to use async_track_template_result

* Convert template binary_sensor to use async_track_template_result

Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com>

* Convert template cover to use async_track_template_result

* Convert template light to use async_track_template_result

Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com>
2020-08-20 09:29:41 -05:00
J. Nick Koston e861957937
Convert template cover to use async_track_template_result (#39042) 2020-08-20 09:29:19 -05:00
James Hilliard 8a9c94fd9e
Fix hlk-sw16 checksum decode. (#39080) 2020-08-20 09:10:29 -05:00
J. Nick Koston 5a8013b58c
Convert template binary_sensor to use async_track_template_result (#39027)
Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com>

Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com>
2020-08-20 09:07:58 -05:00
J. Nick Koston 8813f669c2
Convert template alarm_control_panel to use async_track_template_result (#39014)
* Convert template lock to use async_track_template_result

* Convert template switch to use async_track_template_result

* Convert template fan to use async_track_template_result

* Convert template alarm_control_panel to use async_track_template_result
2020-08-20 08:54:16 -05:00
J. Nick Koston f3d077c1e1
Convert template fan to use async_track_template_result (#38983)
* Convert template lock to use async_track_template_result

* Convert template switch to use async_track_template_result

* Convert template fan to use async_track_template_result
2020-08-20 08:53:45 -05:00
J. Nick Koston 264e340b9e
Convert template switch to use async_track_template_result (#38950) 2020-08-20 08:51:27 -05:00
J. Nick Koston d7f54ce98f
Convert template lock to use async_track_template_result (#38946) 2020-08-20 08:32:52 -05:00
J. Nick Koston 1381b279f0
Update template sensor to use async_track_template_result (#38940)
* Add template entity

* Update template tracking to work for template sensors

* add test for whitespace

* Update homeassistant/helpers/config_validation.py

* revert

* fix

* reduce

* fix _refresh missing decorator

* defer until start

* do not throw errors during startup

* defer tracking until start event

Co-authored-by: Swamp-Ig <github@ninjateaparty.com>
2020-08-20 08:06:41 -05:00
Paulus Schoutsen b7ec0d4884 Remove stale print 2020-08-20 11:41:05 +00:00
Franck Nijhof d3389fa22e
Sentry integration enhancements (#38833)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-20 11:37:27 +02:00
J. Nick Koston 4371068f6a
Fix emulated hue on/off devices compatibility with alexa (#39063) 2020-08-20 10:27:14 +02:00
Daniel Hjelseth Høyer 28a9793a7b
Update met.no library (#39076) 2020-08-20 10:26:49 +02:00
Ivan Belokobylskiy be0f2719e2
Upgrade to aioymaps==1.1.0 to support new types of stops #39006 (#39021) 2020-08-20 05:30:48 +02:00
uvjustin dc2d0b9297
Add audio to stream (#38846)
* Add audio to stream component

* Use container options to do most fmp4 formatting

* Add test for treatment of different audio inputs

* Add test for treatment of different audio inputs

* pcm_mulaw frames should be s16

* Use seek to get BytesIO length

* Remove unused utcnow

* Remove peek_next_audio_pts

* only demux audio and video packets - ignoring data and subtitle streams

Co-authored-by: Jason Hunter <hunterjm@gmail.com>
2020-08-19 23:18:54 -04:00
J. Nick Koston b0974d89a6
Ensure speedtest cancels the listener on options update (#39062) 2020-08-19 17:32:01 -07:00
Graham Wetzler bb164bb32c
Smart Meter Texas integration (#37966)
* Run scaffold script

* Update version

* Bump version

* Initial commit

* Move meter and ESIID to device attributes

* Update internal to hourly due to api limit

* Format with Black

* Fix typo

* Update tests

* Update description

* Disable Pylint error

* Don't commit translations

* Remove meter number from sensor name

* Allow multiple meters per account

* Move data updates to a DataUpdateCoordinator

* Use setdefault to setup the component

* Move strings to const.py

* Fix tests

* Remove meter last updated attribute

* Bump smart-meter-texas version

* Fix logger call

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove unneeded manifest keys

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove icon property

Co-authored-by: J. Nick Koston <nick@koston.org>

* Handle instance where user already setup an account

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove icon constant

* Fix indentation

* Handle config flow errors better

* Use ESIID + meter number as unique ID for sensor

* Update config flow tests to reach 100% coverage

* Avoid reading meters on startup

Cherrypick @bdraco's suggestion

* Run scaffold script

* Update version

* Bump version

* Initial commit

* Move meter and ESIID to device attributes

* Update internal to hourly due to api limit

* Format with Black

* Fix typo

* Update tests

* Update description

* Disable Pylint error

* Don't commit translations

* Remove meter number from sensor name

* Allow multiple meters per account

* Move data updates to a DataUpdateCoordinator

* Use setdefault to setup the component

* Move strings to const.py

* Fix tests

* Remove meter last updated attribute

* Bump smart-meter-texas version

* Fix logger call

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove unneeded manifest keys

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove icon property

Co-authored-by: J. Nick Koston <nick@koston.org>

* Handle instance where user already setup an account

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove icon constant

* Fix indentation

* Handle config flow errors better

* Use ESIID + meter number as unique ID for sensor

* Update config flow tests to reach 100% coverage

* Remove unnecessary try/except block

This checks for the same exception just prior in execution on L51.

* Remove unused return values

* Add tests

* Improve tests and coverage

* Use more pythonic control flow

* Remove all uses of hass.data

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-19 13:16:45 -05:00
lawtancool e626937147
Fix Control4 light setup issues (#38952)
* catch KeyError and UnboundLocalError in light setup

* add check for no dimmer info from control4

* use existence of light_level data to enable dimming

* check if light data is not in dimmer and non_dimmer

* add item_variables logging

* add await to item_variables call

* add full item dump

* remove full item list

* change logging message

* fix typo

* reduce code inside try and add all entities at once

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* format with black

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-19 14:05:02 -04:00
Bram Kragten 5f10c55303
Fix ws create tags (#39043) 2020-08-19 10:36:32 -04:00
Charles Garwood 96035ccd6f
Add websocket command to get a list of OZW instances and their status (#39019)
* Add websocket command to get a list of OZW instances and their status

* Add test

* Review comments
2020-08-19 09:37:04 -04:00
Paulus Schoutsen 3dc79aa60a
Track entity sources (#37258)
Co-authored-by: David Mulcahey <david.mulcahey@me.com>
2020-08-19 14:57:38 +02:00
Paulus Schoutsen 24a16ff8fe
Add image integration (#38969) 2020-08-19 11:33:04 +02:00
Brian Rogers 111c2006c8
Add Rachio zone moisture service (#38817)
* Add zone moisture percent service

* Fix tests

* Add flex const

* Add fixed constant
2020-08-18 21:51:24 -05:00
Tomasz 81b4c6956b
Make ping binary_sensor update async (#35301)
* async_update

* isort and pylint

* @shenxn suggestions

Co-authored-by: Xiaonan Shen <s@sxn.dev>

* async_update

* store the command from the beginning

* command as string

* f-string instead of str.format

* create_subprocess_shell > create_subprocess_exec
more logs

* isort

* types

* use asyncio.wait_for

* Update homeassistant/components/ping/binary_sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* @bdraco review changes

* Update homeassistant/components/ping/binary_sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

Co-authored-by: Xiaonan Shen <s@sxn.dev>
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-18 17:25:50 -05:00
Erik Montnemery 14a3599c47
Bump pychromecast to 7.2.1 (#39018) 2020-08-18 23:43:38 +02:00
Franck Nijhof 475e70986b
Extend IP ban / failed login notification information (#39020) 2020-08-18 23:32:19 +02:00
Anders Melchiorsen d4f1fd7396
Improve time_pattern validation schema (#38982) 2020-08-18 21:10:43 +02:00
kbickar 1505343b4b
Update emulated_hue to allow getting bridge config without username (#38986)
* Allow bridge config without username

* Updated emulated_hue tests

* Test cleanup
2020-08-18 14:02:38 -05:00
David F. Mulcahey 1af6c04111
Add triggers for the Tag component (#39004) 2020-08-18 16:22:53 +02:00
Farid 3c876c4fe1
Bump pysuez to 0.1.19 (#38998) 2020-08-18 15:23:14 +02:00
Erik Montnemery af9ae2e0a4
Allow empty cast media_player config (#38971) 2020-08-18 08:04:32 +02:00
Charles Garwood e9f32617cc
Bump python-openzwave-mqtt to 1.0.5 (#38984) 2020-08-18 07:21:30 +02:00
J. Nick Koston 9feae62f93
Update zeroconf to fix ServiceBrowser leak on cancelation (#38933) 2020-08-17 15:52:54 -05:00
endor bf643b63ad
Add wind max speed to trafikverket_weatherstation (#38929)
* Add wind max speed to trafikverket_weatherstation

* Update CODEOWNERS
2020-08-17 15:39:00 -04:00
Ville Skyttä 802c556e82
State and service related type hint improvements (#38956)
* Improve type hint of service_func to register

* Add named type for state values

* Narrow some unnecessarily broad state type hints
2020-08-17 15:02:43 -04:00
Thomas Delaet 4ea587804e
update python-velbus to 2.0.44 (#38966)
The only change is in python-velbus 2.0.44 is a more flexible way to import dependency pyserial as asked for by @MartinHjelmare
2020-08-17 15:01:21 -04:00
Phil Bruckner ca9dd0c833
Reorganize trigger code (#38655) 2020-08-17 11:54:56 -05:00
J. Nick Koston ab2b2f6dd5
Accommodate systems with very large databases and slow disk/cpu (#38947)
On startup we run an sqlite3 quick_check to verify the database
integrity. In the majority of cases, the quick_check takes under
10 seconds.

On systems with very large databases and very slow disk/cpu,
this can take much longer so we freeze the timeout.
2020-08-17 09:47:50 +02:00
Kit Klein 8d8c1335c5
Fix Konnected pro options (#38848) 2020-08-17 09:47:21 +02:00
J. Nick Koston 49edd91f4e
Bump netdisco to 2.8.2 to accomodate new zeroconf exception (#38949) 2020-08-17 09:46:30 +02:00
cgtobi afa2d268f2
Improve Netatmo sensor naming (#38957) 2020-08-17 09:39:09 +02:00
pbalogh77 5a4de04bcf
Fix HC3 compatibility further (#38931)
* Update __init__.py

Further fixes for HC3 compatibility.

* Update homeassistant/components/fibaro/__init__.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-17 08:19:34 +02:00
Aaron Bach 7071f3a966
Remove deprecated YAML config from OpenUV (#38857) 2020-08-16 19:57:10 -06:00
tizzen33 061d88f875
Fix 'Not Available' message for Onkyo integration (#38554) 2020-08-17 00:06:22 +02:00
Kit Klein a6236886e4
Set up konnected entities even if panel isn't immediately reachable (#38879) 2020-08-17 00:05:11 +02:00
automaton82 66a5f24d4a
Fix the CONF_LOOP check to use the config (#38890) 2020-08-16 16:28:40 +02:00
Ville Skyttä 3c0f766933
Huawei LTE device registry improvements (#38925)
* Fix getting software version in unauthenticated mode

* Add serial number device identifier if available
2020-08-16 13:38:12 +02:00
cgtobi decf3d320b
Fix Netatmo climate boost/heat event handling (#38923)
* Fix boost event handling

* Replace strings with vars
2020-08-16 12:18:58 +02:00
Dennis Gilmore 71a03c8ca5
bump the version of openevsewifi to latest upstream 1.1.0 (#38892)
The latest version of openevsewifi fixes some of the outstanding issues
with the component.

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2020-08-15 23:14:15 -05:00
Chris Talkington 037668ed80
Fix log message format in daikin (#38920) 2020-08-16 03:45:34 +02:00
Martin Hjelmare 0f1e70ca79
Fix ozw pure rgb dimmer light (#38877)
* Fix ozw pure rgb light

* Add test
2020-08-15 14:41:30 -04:00
escoand 9c6b019ca9
Better timeout handling in samsungtv integration (#38759)
* handle PlatformNotReady

* set timeout in bridge

* set timeout in test

* Revert "handle PlatformNotReady"

This reverts commit 118ee06ba0.
2020-08-15 20:25:37 +02:00
indykoning 92adb5d58a
Add new growatt_server device class constants (#38906) 2020-08-15 18:04:49 +02:00
Jc2k a1dfa8ebc6
Bump aiohomekit to 0.2.47 (#38901) 2020-08-15 08:19:07 -05:00
Oncleben31 1544b8cea7
Fix error in meteo_france for overseas France cities (#38895) 2020-08-15 11:54:42 +02:00
Fredrik Erlandsson 68047f7c1a
Handle missing MAC address during daikin discovery (#38840)
* Abort flow if MAC-address can't be found

* Apply suggestions from code review

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-14 20:11:12 -05:00
Chris Caron 70c028458f
Bump apprise to 0.8.7 (#38886) 2020-08-14 20:04:36 -05:00
indykoning b7275de837
Get more detailed info for growatt_server (#38852)
* Get more detailed info including inverter temperature

* Bump version to 0.1.1
2020-08-14 19:54:10 -05:00