Commit Graph

10851 Commits (7d66d4c2190a84054d22b0880c90af6d43bac84d)

Author SHA1 Message Date
Diogo Gomes d5d8eefded
Case sensitive SQL queries checks () 2022-01-07 17:19:30 +01:00
Matt Zimmerman ae3ff0a8ce
Skip empty test directories in gen_requirements_all () 2022-01-07 16:45:27 +01:00
Allen Porter 4203e1b064
Delete nest event image fetching and use same APIs as media player () 2022-01-07 16:37:54 +01:00
G Johansson 91900f8e4e
Add yale_smart_alarm config options flow () 2022-01-07 16:32:49 +01:00
G Johansson e7ef317b43
Bump yalesmartalarmclient to v0.3.7 () 2022-01-07 15:15:23 +01:00
Michael 9deebaa65f
Move lock and devicelock attributes into sensors for all AVM Fritz!Smarthome entities () 2022-01-07 14:46:17 +01:00
Erik Montnemery 09986436a1
Make idle chromecasts appear as idle instead of off () 2022-01-07 14:19:41 +01:00
Steven Looman 9bf1397c54
Fix upnp device not being reinitialized after device changes location () 2022-01-07 14:10:11 +01:00
J. Nick Koston e222e1b6f0
Add device configuration entities to flux_led ()
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2022-01-06 21:02:19 -10:00
J. Nick Koston ad68d0795e
Fix missing device name with legacy flux_led discovery () 2022-01-06 19:43:22 -10:00
Christopher Bailey 3e2495f417
Isolate consts better to where they are used () 2022-01-06 11:57:56 -10:00
epenet 442690b885
Rewrite vultr unittest to pytest ()
* Rewrite vultr unittest to pytest

* Fix tests

* Fix annotations

* Don't check setup_platform return value

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-06 21:44:53 +01:00
Christopher Bailey 812cb4a9d8
UniFi Protect test sensor followup () 2022-01-06 19:31:25 +01:00
Jonathan Keljo 41625f7410
Bump greeneye_monitor to v3.0.1 () 2022-01-06 14:59:56 +01:00
Paulus Schoutsen 7872f87dd7
Allow registering a webhook as local only () 2022-01-05 23:45:02 -08:00
J. Nick Koston 4283b2358c
Add support for Steamist steam showers ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-06 02:55:57 +01:00
Christopher Bailey 7d442122c0
Add UniFi Protect sensor platform ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-05 15:47:47 -10:00
Allen Porter da71e89f53
Add tests that exercise nest dhcp discovery behavior ()
* Add tests that exercise nest dhcp discovery

Add tests that exercise the behavior of dhcp discovery for nest,
which is effectively that it doesn't work -- it only works when
you have already added a configuration.yaml.

Discovery can be made to work by using an entirely config flow
driven approach, which is in discussion.

* Adjust whitespace from merge
2022-01-05 17:35:55 -08:00
Eric Severance 7eacabf684
Share common EntityTestHelpers in wemo tests () 2022-01-05 17:22:38 -08:00
Christopher Bailey 4e56217b89
Add UniFi Protect binary_sensor platform ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-05 11:59:21 -10:00
rhpijnacker 32c416b646
Bump dsmr-parser dependency to 0.32 () 2022-01-05 22:50:00 +01:00
Hans Oischinger 2969a7ab4f
Address late review of vicare config flow ()
* Review comments from 

* Adapt to review suggestions

* Update homeassistant/components/vicare/strings.json

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-05 22:49:42 +01:00
jjlawren 10195dc700
Improve server selection for Plex config flows () 2022-01-05 22:20:33 +01:00
Nico Müller cf1df5ff38
Add 'fire_event' command to websocket api ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-05 12:28:40 -08:00
Loek Sangers 25fe213f22
Enable local fulfillment google assistant ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-05 12:09:59 -08:00
Christopher Bailey d0d5222bf4
UniFi Protect test refactoring ()
* UniFi Protect test refactoring

* More pylint fixes

* Use load_fixture helper

* yield to return where able
2022-01-05 19:29:59 +01:00
Erik Montnemery 6d57dbde68
Support passing callbacks to start.async_at_start ()
* Support passing callbacks to start.async_at_start

* Update homeassistant/helpers/start.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Fix imports

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-05 18:04:09 +01:00
Tom Hennigan ce138dd30e
Add unique id to flic buttons ()
* Use bluetooth address as unique id for flic buttons.

* Always lower case address for uid and add tests.

* Update test to set up component.

* Use format_mac(addr) as unique id.

* Only patch pyflic objects and use query entity registry for buttons.

* Replace ExitStack with patch.multiple, remove assert_setup_component.

* Test binary sensor is present in state machine.
2022-01-05 17:51:01 +01:00
Allen Porter d6c8f3965a
Improve nest camera failure handling on removal () 2022-01-05 16:17:51 +01:00
Simone Chemelli 969930b9c9
Remove debug print () 2022-01-05 15:34:33 +01:00
Erik Montnemery 75f8e031df
Add support for curtain device class to google assistant () 2022-01-05 15:01:58 +01:00
Mike Degatano c1967abfca
Bump influxdb-client dependency to 1.24.0 () 2022-01-05 12:45:41 +01:00
Chris Talkington 213b1bf684
Add MAC to Roku device () 2022-01-05 12:18:52 +01:00
Erik Montnemery c60bb1890d
Remove unused group config view () 2022-01-05 12:16:11 +01:00
Franck Nijhof ed791aa854
Add sensor tests to PVOutput () 2022-01-05 11:15:18 +01:00
Daniel Hjelseth Høyer ba1b09a3a5
Add external Tibber statistics ()
* Tibber, add external statistics

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tibber, add external statistics

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tibber ext stats

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Add tests

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* name

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-01-05 09:33:12 +01:00
Paulus Schoutsen 2b4bb49eb7
Make device tracker entities work better ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Erik Montnemery d4310f0d70
Remove groups.yaml from default config ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-04 23:16:08 -08:00
Marcel van der Veldt f999266c9a
Add additional service to set advanced Hue scene options () 2022-01-04 21:39:08 -08:00
J. Nick Koston e6e200f3c1
Handle no enabled ipv4 addresses in the network integration () 2022-01-04 21:22:28 -08:00
Allen Porter 224f960050
Set the nest configuration title to a user friendly name ()
* Set the nest configuration title to a user friendly name

Set the config entry title name to be the name of the Google Home or
Nest Home that was authorized. In case more than one home was authorized,
they are all listed since they are all accessed over a single shared
home.

* Fix pylint errors

* Resolve pylint errors
2022-01-04 19:23:20 -08:00
mletenay f0acbabd48
Add Goodwe solar inverter integration ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: starkillerOG <starkiller.og@gmail.com>
2022-01-04 22:19:31 +01:00
Franck Nijhof 919aa95f97
Improve test coverage for PVOutput () 2022-01-04 20:20:39 +01:00
Franck Nijhof cd9096907b
Simplify WLED config flow, use device name for config entry () 2022-01-04 10:59:14 -08:00
Jevgeni Kiski 6af99882c5
Prometheus to support input_number ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-04 18:52:43 +01:00
jjlawren 8a8ffa1c08
Add support for Sonos microphone binary_sensor ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-04 18:45:40 +01:00
Hmmbob ec75b0caf0
Add Picnic last_order_max_order_time sensor () 2022-01-04 18:41:31 +01:00
ryborg 5f5adffd5b
Fix CO/CO2 sensors mixup in Google Assistant ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-04 18:24:44 +01:00
Allen Porter d7b080b285
Add support for Add-on discovery in rtsp_to_webrtc ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-04 17:58:08 +01:00
J. Nick Koston 13b262bcce
Keep flux_led device time in sync () 2022-01-04 17:37:15 +01:00
Renat Nurgaliyev f71d49230d
Add counter entities support to Prometheus component () 2022-01-04 17:34:05 +01:00
Allen Porter 0bcad5579b
Set nest climate hvac_action to report idle when hvac mode is not off () 2022-01-04 17:28:46 +01:00
J. Nick Koston ee375ff42d
Offer local control option when there are multiple zeroconf homekit matches () 2022-01-04 16:51:38 +01:00
epenet 411fcad798
Use BinarySensorDeviceClass enum in binary_sensor device automations () 2022-01-04 16:46:21 +01:00
J. Nick Koston 5c8271552a
Add hardware revision support to homekit () 2022-01-04 16:19:12 +01:00
Joakim Plate 7c6297db86
Add support for philips js screen state () 2022-01-04 16:14:44 +01:00
Robert Hillis f028079815
Remove deprecated yaml config from sma ()
Co-authored-by: René Klomp <rene@klomp.ws>
2022-01-04 16:04:16 +01:00
Erwin Oldenkamp 39b26e5ff7
Add device to Wallbox integration () 2022-01-04 15:46:57 +01:00
David F. Mulcahey 6a685f0315
Add select entities to ZHA () 2022-01-04 13:40:29 +01:00
Robert Hillis cfb47b9195
Remove deprecated yaml config from waze_travel_time () 2022-01-04 13:39:32 +01:00
Allen Porter 9c166dfff2
Bump rtsp_to_webrtc to 0.4.0 () 2022-01-04 11:31:33 +01:00
Thomas Dietrich dc15c9ed75
Add SensorDeviceClass to statistics component, improve structures ()
* Improve config checking, add device_class timestamp

* Move additional characteristics into separate branch

* Move deprecation warning for sampling_size default to other branch

* Add supports list description
2022-01-04 10:25:37 +01:00
avee87 04606f05a4
Use built-in Jinja min and max filters in templates ()
* Use built-in Jinja min and max filters in templates

* use built-in filter for global

* lint

* less generic name

* more tests

* even more tests
2022-01-04 10:07:23 +01:00
Christopher Bailey a2677983a2
Add UniFi Protect select platform () 2022-01-03 13:42:10 -10:00
rianadon 48057e1dfb
Weather units: climacell (1.3/4) ()
* climacell units

* Fix climacell tests
2022-01-03 15:09:47 -05:00
Paulus Schoutsen ad8af5fc7a
Allow mobile app registrations only supporting websocket push () 2022-01-03 11:02:41 -08:00
Erik Montnemery 1995a825f3
Reject MQTT light discovery using unsupported value_template ()
* Reject MQTT light discovery using unsupported value_template

* Tweak
2022-01-03 17:16:26 +01:00
Jan Bouwhuis 86ed091dbf
Skip raw encoding test for cover () 2022-01-03 17:08:28 +01:00
Jan Bouwhuis dd0193052c
Add MQTT encoding parameter for all subscribed topics ()
* Add encoding parameter for all subscribable topics

* test setup encoding incoming payload

* remove support for device_tracker and tag+tests
2022-01-03 16:08:07 +01:00
Jan Bouwhuis 3ca18922e6
Mqtt rework on value templates ()
* add MqttValueTemplate class

* support variables at initiation

* pass MqttEntity instead of hass

* Use MqttValueTemplace class for value templates

* make hass en enitity parameters conditional

* remove unused property and remove None assignment

* rename self._attr_value_template
2022-01-03 16:07:40 +01:00
Jan Bouwhuis 061ce0c187
Fix mqtt reloading and rework tests ()
* Improve mqtt reloading/tests and fix issues

* Cleanup fixture for reloading test

* isort and black remove replaced test_reloadable
2022-01-03 15:14:50 +01:00
Jan Bouwhuis 0dab5e69db
Fix MQTT cover not using tilt_command_template () 2022-01-03 15:13:30 +01:00
Jan Bouwhuis 457ce195dd
Add mqtt entity attributes command templates ()
* Add entity variables to MqttCommandTemplate

* missing command template update

* make hass and entity conditional parameters

* Add encoding support for publishing

* Revert "Add encoding support for publishing"

This reverts commit b69b9c60ec.
2022-01-03 15:10:15 +01:00
Aidan Timson d85d93d1a1
Downgrade OctoPrint printer disconnected errors ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-03 13:53:25 +01:00
Joakim Sørensen 56bda80e0a
Address late review comments for version integration ()
* Address late review comments for version integration

* 2 leftover persistent_notification setup
2022-01-03 13:30:40 +01:00
Gabriel Rauter d26275011a
Add unique_id configuration variable to command_line integration () 2022-01-03 11:44:47 +01:00
Erik Montnemery e9b746e874
Add turned on or off device trigger to toggle entity ()
* Add turned on or off device trigger to toggle entity

* Renamed changed_states trigger to toggled

* Adjust tests

* Fix homekit triggers test

* Add tests

* Adjust tests after rebase

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-03 10:41:30 +01:00
Erik Montnemery 8f99cb51b5
Improve test coverage of template button () 2022-01-03 10:39:24 +01:00
Raman Gupta 6f8cd54ca1
Add button platform to template integration ()
* Add button platform to template integration

* review comments

* add unique ID check
2022-01-03 10:03:37 +01:00
Jan Bouwhuis d0c4f0fec4
Add mqtt encoding support for publishing ()
* encoding support for mqtt publishing - todo tests

* signature allows None values for qos and retain

* common test for mqtt publishing encoding

* better test with command templates

* more tests

* fix tests alarm control panel+tests light basic

* tests light json and template

* add tests vacuum and fix tests light_template
2022-01-03 09:03:47 +01:00
Chris Talkington f4857ffe33
Add binary_sensor platform to roku () 2022-01-02 18:44:31 -06:00
Chris Talkington c693b6f455
Add hardware version to Roku device info ()
* add hardware version to Roku device info.

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py
2022-01-02 18:35:09 -06:00
Dave T 89895c6c04
Improve tests for generic camera ()
* Improve tests for generic camera

* Fix black error

* Code review: Move common code to fixtures

* Remove unnecessary patches from tests.

* Address review comments

* Code review: swap more patches for respx

* Code review: use _attr for frame interval.
2022-01-02 13:26:44 -08:00
Allen Porter 9e3f7d2961
Simplify nest reauth config flow () 2022-01-02 21:43:50 +01:00
J. Nick Koston 7de4801bfa
Add support for oncue connectivity binary sensor () 2022-01-02 21:36:14 +01:00
Christopher Bailey d364186571
Add UniFi Protect number platform () 2022-01-02 09:47:25 -10:00
J. Nick Koston 724f5dbf1a
Add Oncue by Kohler integration () 2022-01-02 09:15:39 -10:00
Allen Porter 15baea4ba3
Use more narrow exception catching in `nest` () 2022-01-02 18:54:56 +01:00
epenet 24e27290b5
Drop deprecated CONF_NAMES from onewire ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:10:19 +01:00
Allen Porter ebc8e19788
Revert nest reloading due to lock up () 2022-01-02 17:08:38 +01:00
Christopher Bailey e5b7eac411
Add UniFi Protect switch platform () 2022-01-01 11:23:10 -10:00
Dave T 817f0c9aae
Refactor enum zwave js tests ()
* Use new enums in zwave_js tests

* Convert == to is

* Refactor some ATTR_ * as well.

* Address review comments
2022-01-01 21:50:48 +01:00
Allen Porter c7b991f56b
Add `rtsptowebrtc` integration ()
* Add initial version of the webrtc integration

Add the webrtc integration. This integration proxies the
signal 'offer' from the client to a RTSPtoWebRTCP server that
returns an 'answer'.

The RTSPtoWebRTC server is a go binary based on pion, and this is
what is currently used by the WebRTC custom_component:
https://github.com/AlexxIT/WebRTC
https://github.com/deepch/RTSPtoWebRTC

* Readability improvements for webrtc

* Reach 100% test coverage

* Use rtsp-to-webrtc client library package

* Rename webrtc to rtstptowebrtc

This is to reflect naming as one type of approach to webrtc since other webrtc integrations would look very different.

* Remove internal quality scale

* Bump rtsptowebrtc to support heartbeats

* Shorten server url variable and remove const.py

* Add config flow validation for RTSPtoWebRTC server

* Add RTSPtoWebRTC server health checks

* Accept translation suggestion

* Apply suggestions from code review

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

* Update rtsptowebrtc to use new camera registry API

Update rtsptowebrtc to use new API added in 

* Remove unused variable

* Fix lint and typing errors for python 3.8

* Rename to rtsp_to_webrtc to follow standards

* Use async_on_unload for unsubscribing camera webrtc provider

* Remove unnecessary translations in config flow

* Remove unnecessary configuration setup

* Cleanup test setup and typing

* Patch integration setup to avoid starting the whole integration

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-01 12:36:31 -08:00
Daniel Hjelseth Høyer 8e5c8c516d
Adax, unique id and title should be string () 2021-12-31 12:22:47 -10:00
Christopher Bailey b379acc119
Clean up patching of setup platforms for UniFi Protect integration () 2021-12-31 12:20:23 -10:00
Allen Porter 0dee4f85f0
Implement an rtsp to webrtc registry in camera ()
* Implement a webrtc to rtsp support in camera as a registry

Allow integrations to register a provider that can convert an RTSP stream and WebRTC offer to a WebRTC answer. This is
planned to be used by the RTSPtoWebRTC server integration as an initial pass, but could
support other server implementations as well (or even native implementationf or that matter).

* Fix test bug to improve test covergae and restructure statements

* Add missing call to refresh webrtc providers

* Run provider refresh in parallel since it may send RPCs

* Replace for loop with any

* Fix pylint warning to use a generator
2021-12-31 13:44:33 -08:00
Christopher Bailey 0de3a299d6
Add UniFi Protect light platform () 2021-12-31 11:21:29 -10:00
Maikel Punie d7f0ad29df
Add velbus USB dicovery () 2021-12-31 09:44:35 -10:00
Shay Levy c65a50bd2e
Fix Shelly error fetching device triggers for sleeping devices () 2021-12-31 18:47:03 +01:00
Franck Nijhof 78442d82d1
Add color mode support to switch light () 2021-12-31 11:43:59 +01:00
Marcel van der Veldt 055fb99938
Hue allow per-device availability override ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-30 20:46:52 -08:00
Franck Nijhof b5300fb32e
Add configuration flow to Whois ()
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2021-12-30 22:42:46 +01:00
Sebastian Lövdahl 0a95b2c591
Vallox config flow follow-up fixes ()
* Vallox config flow follow-up fixes

* Fix logging

* Get documentation URL from manifest

* Feedback fixes
2021-12-30 11:58:36 +01:00
epenet e3c1a3567e
Fix local_file partial tests ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-29 16:52:23 -10:00
Marvin Wichmann b9247f3952
Fix local_ip handling in KNX options flow () 2021-12-30 01:13:58 +01:00
Christopher Bailey 02e59b2f38
Fixes UniFi Protect reconnect issues () 2021-12-29 12:39:55 -10:00
Franck Nijhof c6230fef08
Add full test coverage to CPU Speed () 2021-12-29 22:59:14 +01:00
Christopher Bailey 699512c36f
Add UniFi Protect button () 2021-12-29 09:38:44 -10:00
Christopher Bailey b31041698f
Feedback from previous PR () 2021-12-29 08:39:45 -10:00
Allen Porter 788373a7ca
Update legacy nest config flow tests to use modern best practices ()
* Update legacy nest tests to use modern best practices

Update legacy nest integration config flow tests to test the config flow actually through the integration APIs rather
than interacting with the config flow object directly. This is a pre-factoring pulled out of a larger config flow revamp
where we want to exercise the actual production code for initializing configuration, config flows, and authentication
implementations.

* Revert some test name/comment changes

* Update setup calls to verify async_setup_legacy is called
2021-12-29 10:38:50 -08:00
Allen Porter 23384ee1e8
Update stream errors with additional error information () 2021-12-29 18:57:14 +01:00
Franck Nijhof 2f7fa962b4
Detect unsupported system in CPU Speed integration () 2021-12-29 18:54:47 +01:00
Mirko Lenz ab4effc7e2
Allow sending GroupValueResponse telegrams with knx.send service ()
* Add knx.respond service

* Combine knx.send and knx.respond services

* Rename knx attribute and fix tests

* Use parametrization in tests

Co-authored-by: Marvin Wichmann <marvin.wichmann@unic.com>
2021-12-29 18:15:48 +01:00
Marcel van der Veldt 497bfc1c8f
Normalize Hue colortemp if value outside of bounds () 2021-12-29 15:13:52 +01:00
Marcel van der Veldt c5bdf858a8
Fix short flash effect in Hue integration () 2021-12-29 14:21:38 +01:00
Allen Porter 2df0adfbc7
Reload nest integration when new devices are added () 2021-12-29 12:20:55 +01:00
Christopher Bailey 490d76e01e
Add UniFi Protect media_player () 2021-12-28 18:36:18 -10:00
Alexei Chetroi b54f2c9487
Don't throw when a Zigbee device has an unknown ZCL cluster ()
* Fix channel name for clusters with None ep_attribute

* Correctly generate entity name based on channel names
2021-12-28 21:04:11 -05:00
Franck Nijhof 4fe62a251d
Rename Luftdaten -> Sensor.Community () 2021-12-28 21:40:00 +01:00
Franck Nijhof 5ab527e59c
Add configuration flow to CPU Speed () 2021-12-28 21:17:53 +01:00
Sebastian Lövdahl b5fd2e0d58
Convert Vallox integration to config flow () 2021-12-28 10:06:29 -10:00
Franck Nijhof 90a9d64f67
Add reauthentication handling to PVOutput () 2021-12-28 17:28:35 +01:00
Pascal Reeb 1af3177466
Fix unique_id of nuki config entry ()
* fix(nuki): fixed naming of nuki integration

* parse_id function

* migration path

* fixes from ci runs

* don't update title if it was changed

* move to dedicated helper

* use dict of params

* Update homeassistant/components/nuki/__init__.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 23:02:48 +01:00
Mick Vleeshouwer b9ce82f79c
Add unique id to DHCP step in Config Flow for Overkiz () 2021-12-27 11:28:18 -10:00
Franck Nijhof 1cfeb404b6
Add configuration flow to PVOutput ()
* Add configuration flow to PVOutput

* Update homeassistant/components/pvoutput/sensor.py

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

* Update homeassistant/components/pvoutput/sensor.py

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

* Use account URL placeholder

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 22:05:10 +01:00
Florent Thoumie 3c2d5d5f8c
Update to iaqualink 0.4.1 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-27 10:20:55 -10:00
Amos Yuen 45ab9a3e33
Init template trigger binary sensor to None instead of False () 2021-12-27 20:52:26 +01:00
Allen Porter 17fbfe2eed
Set a suggested_area on nest devices based on the Google Home room name () 2021-12-27 11:39:57 -08:00
corneyl 7fc5605639
Fix keyerror when no previous Picnic orders exist () 2021-12-27 20:31:35 +01:00
Alberto Geniola 1f425b1942
Improve Elmax code quality ()
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 19:50:43 +01:00
G Johansson 0d957ad93b
Code improvements Sensibo () 2021-12-27 08:34:00 -10:00
corneyl b0704c190f
Fix picnic sensor time unit () 2021-12-27 17:44:45 +01:00
Christopher Bailey dc3f21dd1e
Followup PR for UniFi Protect integration ()
* Followup improvements from initial PR

* Update tests/components/unifiprotect/conftest.py

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

* Update translations

* Fixes log message

* Fixes log message

* Unknown to cannot connect

* Update tests/components/unifiprotect/test_config_flow.py

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

* Fixes camera coverage

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 12:39:24 +01:00
kpine 22e475790f
Avoid removing zwave_js devices for non-ready nodes ()
* Only replace a node if the mfgr id / prod id / prod type differ

* Prefer original device name for unready node

* move register_node_in_dev_reg into async_setup_entry

* simplify get_device_id_ext

* Don't need hex ids

* Revert "move register_node_in_dev_reg into async_setup_entry"

This reverts commit f900e5fb0c67cc81657a1452b51c313bccb6f9e1.

* Revert Callable change

* Revert device backup name

* Add test fixtures

* Update existing not ready test with new fixture data

* Check device properties after node added event

* Add entity check

* Check for extended device id

* better device info checks

* Use receive_event to properly setup components

* Cleanup tests

* improve test_replace_different_node

* improve test_replace_same_node

* add test test_node_model_change

* Clean up long comments and strings

* Format

* Reload integration to detect node device config changes

* update assertions

* Disable entities on "value removed" event

* Disable node status sensor on node replacement

* Add test for disabling entities on remove value event

* Add test for disabling node status sensor on node replacement

* disable entity -> remove entity

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 12:31:31 +01:00
J. Nick Koston 417172eef2
Cleanup HomeKit names to avoid unknown error when adding () 2021-12-27 09:53:33 +01:00
uvjustin 08a3140e6c
Allow generic camera conf without still_image_url ()
* Allow generic config with no CONF_STILL_IMAGE_URL
* Use Stream.async_get_image when no CONF_STILL_IMAGE_URL
* Remove GenericCamera.camera_image
2021-12-26 15:53:14 +08:00
Christopher Bailey e982e7403a
Add unifiprotect integration ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-25 20:12:57 -10:00
Franck Nijhof 7d7f5272fe
Add device info to Luftdaten () 2021-12-25 10:52:31 +01:00
Raman Gupta 639181108f
Add zwave_js support for Fortrezz SSA3 () 2021-12-25 10:33:20 +01:00
David F. Mulcahey 0062676f61
Add lqi and rssi sensors back to ZHA ()
* update device list

* Only 1 identify button per device

* Add LQI and RSSI sensors to ZHA

* refactor entity creation filter

* update device list and update discover test

* fix reference

* code reduction

* walrus

* parens

* simplify
2021-12-24 16:48:02 -05:00
Eric Severance a1be11a492
Store wemo device sw_version & upnp connections () 2021-12-24 10:31:42 -10:00
uvjustin 9dbba6b7f2
Use lock in Camera.create_stream ()
Rename create_stream to async_create_stream in Camera
Rename get_image to async_get_image in Stream
Rename get_image to async_get_image in KeyFrameConverter
2021-12-25 04:14:43 +08:00
Lorenzo Brescanzin 0da710c4e0
Fix HomeKit sensor update check () 2021-12-24 08:39:37 -10:00
J. Nick Koston 690b5a994b
Add missing __init__.py to overkiz tests () 2021-12-23 22:55:31 -10:00
Brian Egge 27e3a5ba83
Generic thermostat presets ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-23 14:29:29 -10:00
David F. Mulcahey 41531b528e
Add identify buttons to ZHA devices ()
* Identify buttons

* clean up and add test

* use Platform

* update device list

* Only 1 identify button per device

* cleanup press until the need arises for the branch

* make imports relative
2021-12-23 17:52:42 -05:00
Dave T fa6d6d914b
Use new enums in zwave tests ()
* Use new enums in zwave tests

* Code review: == to is and BinarySensor to Sensor
2021-12-23 23:51:33 +01:00
Dave T 759481688b
Use new enums in huisbaasje tests () 2021-12-23 23:44:09 +01:00
Dave T 79ef4dea98
Use new enums in smartthings tests ()
* Use new enums in smartthings tests

* Convert == to is
2021-12-23 23:14:10 +01:00
Dave T caa2157b5b
Use new enums in rdw tests () 2021-12-23 23:07:56 +01:00
Joakim Sørensen 13e3ca6ab1
Add config flow to version integration () 2021-12-23 21:04:58 +01:00
jjlawren 00307e1ade
Bump soco to 0.25.2 () 2021-12-23 11:07:29 -08:00
Ed Coen df6fa43bff
Add connectsense to homekit_controller () 2021-12-23 19:05:36 +00:00
Mick Vleeshouwer 3605c4f32f
Add Overkiz integration (with base + sensor entity) () 2021-12-23 08:34:35 -10:00
Eugenio Panadero f422dd418b
Fix pvpc_hourly_pricing by changing data source and modernise integration () 2021-12-23 17:08:40 +01:00
Franck Nijhof 40f1d53475
Add sensor tests to Luftdaten () 2021-12-23 15:46:17 +01:00
Christian Manivong 772428e70f
Round Hue transition to steps of 100ms ()
* Adding round() to transition before firing turn_on, turn_off 
2021-12-23 15:08:24 +01:00
Marcel van der Veldt eb37668036
Fix Hue button events () 2021-12-23 14:24:37 +01:00
Tom Brien fa7739937d
Provide clearer feedback in Coinbase when authentication fails () 2021-12-23 10:52:22 +01:00
Erik Montnemery 8e8e49d3e7
Add sensor device classes for apparent and reactive power () 2021-12-23 10:29:38 +01:00
Erik Montnemery cb2c2d98c3
Remove unnecessary checks before calling os.makedirs () 2021-12-23 09:59:31 +01:00
Eduard van Valkenburg 259e454c3e
Azure Event Hub code improvements ()
* code improvements to AEH

* moved hub back
2021-12-23 07:52:44 +01:00
Franck Nijhof dc47cbd01b
Add input_button support to Google Assistant () 2021-12-23 07:38:35 +01:00
Franck Nijhof 99b2161365
Add input_button support to Alexa () 2021-12-23 07:36:45 +01:00
Allen Porter 23277181ca
Increase test coverage for google calendar ()
* Increase test coverage for google calendar

Update tests to exercise the API responses, getting test coverage
to 97% for calendar.py

----------- coverage: platform linux, python 3.9.6-final-0 -----------
Name                                          Stmts   Miss  Cover   Missing
---------------------------------------------------------------------------
homeassistant/components/google/__init__.py     193     84    56%   92, 163-228, 238, 244-247, 254-262, 274, 298-299, 305-347, 387-392, 416-430, 435-437
homeassistant/components/google/calendar.py     122      4    97%   41, 45, 51, 135
---------------------------------------------------------------------------
TOTAL                                           315     88    72%

* Revert conftest changes

* Update typing errors found on CI

* Update python3.8 typing imports

* Remove commented out code
2021-12-23 07:31:56 +01:00
Franck Nijhof 6ef7539a31
Add base integration tests to Luftdaten () 2021-12-23 07:25:26 +01:00
J. Nick Koston ef5e5c3f96
Dismiss existing discoveries when a HomeKit device is paired () 2021-12-22 19:40:36 -10:00
Franck Nijhof c5d62ccc7e
Add input_button support to HomeKit () 2021-12-22 13:23:57 -10:00
G Johansson 566f631933
Implement config_Flow for Sensibo ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-22 10:32:50 -10:00
Jc2k 06eec7adfc
Allow adding new devices to an Aqara hub via homekit_controller () 2021-12-22 08:49:58 -10:00
uvjustin 6e13605cad
Add get_image method to Stream ()
* Add get_image method to Stream

* Add KeyFrameConverter class
2021-12-23 00:24:53 +08:00
Erik Montnemery eda9291ca1
Improve google cast state reporting () 2021-12-22 14:54:36 +01:00
Dave T 38e95ca663
Use new enums for prometheus tests () 2021-12-22 14:31:20 +01:00
Dave T d7de3fbfce
Use new enums in picnic tests () 2021-12-22 14:29:55 +01:00
Dave T eb10ff47df
Use new enums in p1_monitor tests () 2021-12-22 14:28:22 +01:00
Erik Montnemery 2f8e65a9b0
Store deleted duplicated statistics in .storage () 2021-12-22 14:27:56 +01:00
Robert Hillis 75e8a2ec77
Use platform enums in plex tests () 2021-12-22 07:59:54 -05:00
Robert Hillis 432d48a4d7
Use platform enums in vizio tests () 2021-12-22 07:33:13 -05:00
Robert Hillis d9788c2447
Use platform enums in rest tests () 2021-12-22 07:31:55 -05:00
Franck Nijhof 496165711d
Improve config flow Luftdaten ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-22 13:00:51 +01:00
Franck Nijhof 60b2cdd069
Allow binary sensor state to be None () 2021-12-22 12:24:29 +01:00
Erik Montnemery 3323263c94
Flip behavior for grouped locks () 2021-12-22 12:14:45 +01:00
Robert Hillis ee878513a7
Remove deprecated yaml config from squeezebox () 2021-12-22 12:03:31 +01:00
Robert Hillis 5e25df91b2
Use platform enums in utility_meter tests () 2021-12-22 10:43:33 +01:00
Dave T 563e6b3e80
Use new enums in modern_forms tests () 2021-12-22 10:04:12 +01:00
Dave T e64352a7e0
Use new enums in modbus tests () 2021-12-22 10:03:11 +01:00
Dave T f2ae7c0b92
Use new enums in mfi tests ()
* Use new enums in mfi tests

* Code review: swap == for is
2021-12-22 10:01:00 +01:00
Dave T a7ef983a31
Use new enums in litterrobot tests ()
* Use new enums in litterrobot tests

* Code review: swap == for is
2021-12-22 10:00:24 +01:00
Jc2k d3d6965ba0
Support setting Aqara Hub Volume via homekit_controller () 2021-12-22 08:43:17 +00:00
Dave T c7b910ca33
Use new enums in knx tests ()
* Use new enums in knx tests

* Code review: Swap == for is
2021-12-22 09:31:23 +01:00
schmyd f135d77a27
Fix deconz light service parameter handling ()
* Only check presence of values, not their content

* Add tests

* Revert "Only check presence of values, not their content"

This reverts commit 046f0ed5fd.

* Validate existence of keys, not their values

* Properly handle cases of missing keys
2021-12-22 09:29:54 +01:00
Dave T 3663e0af41
Use enums for ozw tests () 2021-12-22 09:16:37 +01:00
Robert Hillis ce9abdb520
Use platform enums in ring tests () 2021-12-21 21:01:01 -08:00
Robert Hillis 0c82a3c7b0
Use platform enums in withings tests () 2021-12-21 20:37:17 -08:00
Robert Hillis 1279592a98
Remove deprecated yaml config from vlc_telnet () 2021-12-21 23:37:46 +01:00
Robert Hillis 550fe18603
Use enums in tasmota tests ()
* Use enums in tasmota tests

* platform enums
2021-12-21 23:01:07 +01:00
Dave T d82e8b6cc0
Use new enums in mobile_app tests () 2021-12-21 22:30:18 +01:00
Dave T 043a4b06d0
Use new enums in mqtt tests () 2021-12-21 22:04:32 +01:00
Dave T 03054bc430
Use new enums in mysensors tests () 2021-12-21 21:57:55 +01:00
Dave T e0c5cbf1e0
Use new enums in nam tests () 2021-12-21 21:54:58 +01:00
Dave T 8166f37830
Use new enums in nzbget tests () 2021-12-21 21:51:10 +01:00
Dave T 33bddf275c
Use SensorStateClass Enums in fritzbox tests () 2021-12-21 19:17:23 +01:00
Ville Skyttä 9b437ef146
Remaining DeviceAutomationType bits ()
* Use DeviceAutomationType in missed tests/components/*

* Tighten device automation type hints
2021-12-21 20:05:48 +02:00
Dave T 498720f3c9
Use DeviceClass Enums in integration tests () 2021-12-21 19:03:39 +01:00
Dave T 1f62371f45
Use DeviceClass Enums in iotawatt tests () 2021-12-21 19:02:15 +01:00
Franck Nijhof 07e034c1c6
Add iif (immediate if) template function/filter () 2021-12-21 17:25:07 +01:00
Erik Montnemery 6151bbe5c8
Improve debug log when warning about a dip in total_increasing sensor () 2021-12-21 17:22:40 +01:00
Erik Montnemery 48b3d6e1c0
Save original + duplicate pairs when deleting duplicated statistics () 2021-12-21 15:24:36 +01:00
Erik Montnemery cab2a74b5f
Don't pollute config dir with deleted duplicated statistics () 2021-12-21 14:27:35 +01:00
Erik Montnemery cbcd6d458e
Assert current state of script condition validation in tests () 2021-12-21 14:10:05 +01:00
Erik Montnemery 684c380ce2
Use SensorDeviceClass enum in sensor device automations () 2021-12-21 14:07:01 +01:00
Franck Nijhof e62148b8ff
Remove deprecated YAML configuration from Stookalert () 2021-12-21 12:53:19 +01:00
Erik Montnemery e2fca2e305
Support shorthand templates in condition actions ()
* Support shorthand templates in condition actions

* Fix validation message

* Fix tests
2021-12-21 12:19:31 +01:00
J. Nick Koston 4b30c9631f
Add set_music_mode service to flux_led for detailed music mode control () 2021-12-21 12:09:41 +01:00
Ville Skyttä ea58432721
Use DeviceAutomationType in tests/components/[s-z]* () 2021-12-21 11:56:00 +01:00
Brynley McDonald 26dc526234
Add slugify as a template filter () 2021-12-21 11:35:54 +01:00
J. Nick Koston e0ef066022
Remove legacy migration and yaml from tplink ()
- tplink has been fully migrated to a config flow in previous
  versions.
2021-12-21 11:24:32 +01:00
Robert Hillis a9c45fdcc0
Remove deprecated yaml config from philips_js () 2021-12-21 11:11:25 +01:00
Robert Hillis 101341f186
Remove deprecated yaml config from google travel time () 2021-12-21 11:00:11 +01:00
Robert Hillis d1980e7351
Remove deprecated yaml config from honeywell () 2021-12-21 10:53:07 +01:00
Franck Nijhof 7cdfc7558e
Cleanup stale setup/import from Nuki ()
* Cleanup stale setup/import from Nuki

* Adjust tests
2021-12-21 10:31:41 +01:00
Robert Hillis d73081f875
Remove deprecated yaml config from nuki () 2021-12-21 10:01:43 +01:00
J. Nick Koston a7cae02725
Add support for changing Magic Home socket power restore state () 2021-12-20 20:35:50 -06:00
Ville Skyttä f913961d63
Use DeviceAutomationType in tests/components/[m-r]* () 2021-12-20 22:29:22 +01:00
Ville Skyttä 5926961ed5
Use DeviceAutomationType in tests/components/[a-f]* () 2021-12-20 22:26:29 +01:00
Ville Skyttä c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* () 2021-12-20 22:18:53 +01:00
Aaron Bach b051704c4b
Add reauth flow to Tile () 2021-12-20 13:11:26 -07:00
Erik Montnemery a7a0cfd9e6
Make it possible to turn on audio only google cast devices () 2021-12-20 11:18:11 -08:00
ollo69 5a41251d45
Add config_flow to AndroidTV integration ()
Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com>
2021-12-20 13:08:35 -06:00
Eric Severance 2dfd4c49da
Fix Non-thread-safe operation in wemo tests () 2021-12-20 12:56:56 -06:00
Dave T 168fefad88
Use DeviceClass Enums in homekit () 2021-12-20 12:53:44 -06:00
Matthias Alphart 6cf9f1a0cc
Update xknx to 0.18.14 ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-20 19:22:04 +01:00
Ville Skyttä 334c6c5c02
Make device automation type an enum () 2021-12-20 19:16:30 +01:00
Dave T ac0f655fd6
Use DeviceClass Enums in devolo_home_network tests () 2021-12-20 18:09:28 +01:00
Franck Nijhof fc6c0b1d4a
Add input_button ()
* Add input_button

* Update homeassistant/components/input_button/__init__.py

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

* Improve test coverage

* Add reload test: not affecting state

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-20 16:18:58 +01:00
Thomas Dietrich 28af0b4092
Statistics component typing ()
* Implement optional manually defined uniqueid

* Fix test case via mocked environment

* Add typing to statistics component

* Fix minor inconsistency

* Fix linter issues

* Execute hassfest

* Fix stricter mypy warnings

* Fix maxsplit warning

* Make binary value range explicit check

* Add basic typing to statistics tests

* Add empty config testcase

* Minor improvements

* Improve after comments

* Remove unnecessary test case

* Fix changed type

* Remove dict.get default
2021-12-20 14:53:51 +01:00
Erik Montnemery c96606df68
Don't use the homeassistant media app when casting media () 2021-12-20 14:28:02 +01:00
Robert Hillis e689afc0b3
Remove deprecated yaml config from dlna_dmr () 2021-12-20 13:56:45 +01:00
Robert Hillis cabcb52fb3
Remove deprecated yaml config from co2signal () 2021-12-20 13:49:15 +01:00
J. Nick Koston abc7dcf6bf
Add zones support to flux_led () 2021-12-20 13:45:34 +01:00
Paulus Schoutsen a5c39e6fe4
Improve evil genius labs error handling () 2021-12-20 09:00:49 +01:00
Eric Severance f50dc10276
Use the Platform enum in wemo () 2021-12-19 21:11:40 -08:00
Eric Severance e8096e7f51
Bump pywemo==0.7.0 () 2021-12-19 21:02:05 -08:00
Allen Porter 6ae7b928ea
Add a camera specific logger to help diagnose stream errors ()
* Add a camera specific logger to help diagnose stream errors

Add a camera specific logger to help users associate stream errors with a particular camera.
Issue 

* Apply code review feedback

* Update package name based on manual testing
2021-12-19 19:42:37 -08:00
Eric Severance 1318597370
Fix typing for wemo () 2021-12-19 18:09:30 -06:00
Robert Hillis 1baba2a807
Remove deprecated yaml config from flux_led ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-19 15:24:04 -06:00
Allen Porter 368e16f189
Simplify nest test patch using new keyword () 2021-12-19 11:45:04 -08:00
Robert Hillis dfc93f6ab8
Remove deprecated yaml config from Efergy () 2021-12-19 18:44:26 +01:00
Allen Porter 647febd7d8
Mark camera unavailable when keepalive stream fails ()
* Mark camera unavailable when keepalive stream fails

Add a listener in stream that notifies camera when the stream state has changed, and
use that to inform the camera `available` property. Update the property to be set
only from the main loop where it is read to reduce thread safety races.

Issue 

* Fix pylint import related errors

* Address lint naming errors

* Apply suggestions from code review

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

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-19 09:09:59 -08:00
Ville Skyttä 1ec8619687
Make core config source an enum ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-19 18:02:52 +01:00