Commit graph

14201 commits

Author SHA1 Message Date
Raman Gupta
c11a3881af
Bump zwave-js-server-python to 0.47.0 () 2023-03-27 12:25:04 +02:00
Jan Bouwhuis
5b3c57ff1e
Add option flow for imap integration ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-27 11:47:22 +02:00
epenet
8c519e1abb
Use SnapshotAssertion in gree climate tests () 2023-03-27 10:01:39 +02:00
G Johansson
624860da0e
Remove deprecated platform yaml in Scrape ()
* Deprecate platform yaml

* typing

* DiscoveryInfoType
2023-03-27 08:05:30 +02:00
Paulus Schoutsen
c3717f8182
Clean up voice assistant integration ()
* Clean up voice assistant

* Reinstate auto-removed imports

* Resample STT audio from 44.1Khz to 16Khz

* Energy based VAD for prototyping

---------

Co-authored-by: Michael Hansen <mike@rhasspy.org>
2023-03-26 21:41:17 -05:00
J. Nick Koston
7098debe09
Fix sql doing I/O in the event loop at startup ()
* Fix sql doing I/O in the event loop

* Fix sql doing I/O in the event loop

* no test query on main db

* fix mocking because it was targeting the recorder
2023-03-26 21:02:24 -04:00
epenet
c06ec1f78f
Improve onewire test coverage () 2023-03-26 23:46:52 +02:00
Allen Porter
fa35867765
Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics () 2023-03-26 23:00:45 +02:00
Aaron Godfrey
745df277a0
Fix Todoist end date for all day event () 2023-03-26 22:08:36 +02:00
Michael
45262c6114
Implement config flow for nextcloud ()
* implement config flow

* add tests

* fix hassfest and requirements

* abort import on connection error

* add add_suggested_values_to_schema

* mock async_setup_entry

* revert code owner change

* fix try connect in config flow

* add device info

* allow multiple instances

* fix import in config flow

* remove custom scan interval from coordinator

* applay suggestions

* apply suggestions

* take over ownership from @meichthys

* cleanup import data before passing to user step

* apply suggestions to tests

* add untested files to .coveragerc
2023-03-26 21:14:17 +02:00
Alexey Baturin
89355e0879
Add WLED IP as a sensor ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-26 20:03:03 +02:00
epenet
a036e31495
Use SnapshotAssertion in gree switch tests () 2023-03-26 19:51:48 +02:00
Niels Perfors
1baadc1d09
Update Verisure package to 2.6.1 ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: RobinBolder <33325401+RobinBolder@users.noreply.github.com>
Co-authored-by: Tobias Lindaaker <tobias@thobe.org>
2023-03-26 19:32:25 +02:00
rikroe
bec7bbeb92
Use SnapshotAssertion in bmw_connected_drive tests () 2023-03-26 16:57:19 +02:00
epenet
69a46d4002
Adjust pylint plugin for components fixtures ()
* Adjust pylint plugin for components fixtures

* Adjust components

* Use MagicMock

* Adjust

* Use None
2023-03-26 15:21:19 +02:00
epenet
e0ec3488d3
Adjust IntFlag handling in syrupy () 2023-03-26 14:20:05 +02:00
G Johansson
e8f3b9c09a
Remove Volvooncall integration yaml import ()
Depr yaml import
2023-03-26 09:42:38 +02:00
G Johansson
b3f3f234c6
Remove pushbullet platform yaml import ()
Depr pushbullet yaml
2023-03-26 09:40:07 +02:00
G Johansson
92beb48a41
Add sensor platform to Sun ()
* Sun sensor
* remove extra attr
* Add tests
* Add back attributes
* position sensors disabled default
* entity id
* unique id
* test init to attributes
* Fix test init
* Fix test sensor
* test unique id
* uom
* remove rising
* Remove not needed uom property
* Fix reload issue
* degree
2023-03-26 07:24:43 +08:00
G Johansson
7f6406127e
Remove platform yaml radiotherm () 2023-03-25 12:43:44 -10:00
G Johansson
89d00ac733
Fix default ipv6 resolver () 2023-03-25 12:31:01 -10:00
Franck Nijhof
5c839e2367
Add entity name translations to Elgato () 2023-03-25 23:06:03 +01:00
rikroe
cc337c4ff6
Add Re-Auth to bmw_connected_drive ()
* Add Re-Auth to bmw_connected_drive

* Always store refresh token to entry

* Fix tests

* Typo

---------

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2023-03-25 10:09:33 -07:00
Luca Angemi
6d8eaa0bee
Add location field to calendar create_event service supported by Google Calendar and Local Calendar ()
* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update calendar.py

* Update calendar.py

* Update services.yaml

* Update services.yaml

* Update calendar.py

* Update calendar.py

* Update __init__.py

* Update services.yaml

* Update services.yaml

* Update test_calendar.py

* Update test_init.py

* Update test_init.py

* Update test_init.py

* Update test_init.py

* Update __init__.py

* Update const.py

* Address changes to service.yaml

* Address changes to service.yaml

* Update test_calendar.py

* Update test_calendar.py

* Update test_calendar.py

* Update conftest.py

* Update conftest.py

* Update calendar.py

* Update __init__.py
2023-03-25 09:43:49 -07:00
epenet
5f3868b141
Add missing type hints to tests ()
* Add type hints to tests

* Revert gree as handled in 
2023-03-24 19:34:01 -07:00
J. Nick Koston
4c45c3c63b
Add a faster query for get_last_state_changes when the number of states is 1 ()
* Add a faster query for get_last_state_changes when the number of states is 1

related issue 

* Add a faster query for get_last_state_changes when the number of states is 1

related issue 

* coverage

* Apply suggestions from code review
2023-03-24 09:39:55 -04:00
Robert Svensson
ee74e21541
Rework UniFi wireless client "wired bug" logic () 2023-03-24 10:06:09 +01:00
Jan Bouwhuis
7364e6ecb3
Remove incorrect parametrize decorator () 2023-03-24 09:38:43 +01:00
Jan Bouwhuis
1224b1aff6
Use helper on tests MQTT fan platform ()
Use helper on tests fan
2023-03-24 08:42:23 +01:00
Jan Bouwhuis
f2b4c95a04
Prepare MQTT platform tests part7 ()
* Tests select

* Tests sensor

* Deduplicate test code
2023-03-24 08:42:00 +01:00
Jan Bouwhuis
0570405a3c
Prepare MQTT platform tests part6 ()
* Tests lock

* Tests mixins

* Tests number

* Tests scene
2023-03-24 08:41:36 +01:00
Jan Bouwhuis
a404d5f6d7
Prepare MQTT platform tests part5 ()
* Tests light_json

* Tests light_template

* Tests light
2023-03-24 08:41:04 +01:00
J. Nick Koston
d49fbc17df
Fix recorder attribute excludes not being effective until after startup ()
* Fix attribute excludes not being effective until after startup

fixes 

* reduce
2023-03-23 20:52:37 -04:00
J. Nick Koston
dd0f05b980
Avoid calling the http access logging when logging is disabled () 2023-03-23 09:55:02 -10:00
epenet
38a4f08e15
Fix missing mock in islamic_prayer_times ()
* Fix missing mock in islamic_prayer_times

* Restore 100% coverage

* Update test_config_flow.py
2023-03-23 20:10:51 +01:00
Michael Hansen
3e3ece4e56
Add speech to text over binary websocket to pipeline ()
* Allow passing binary to the WS connection

* Expand test coverage

* Test non-existing handler

* Add text to speech and stages to pipeline

* Default to "cloud" TTS when engine is None

* Refactor pipeline request to split text/audio

* Refactor with PipelineRun

* Generate pipeline from language

* Clean up

* Restore TTS code

* Add audio pipeline test

* Clean TTS cache in test

* Clean up tests and pipeline base class

* Stop pylint and pytest magics from fighting

* Include mock_get_cache_files

* Working on STT

* Preparing to test

* First successful test

* Send handler_id

* Allow signaling end of stream using empty payloads

* Store handlers in a list

* Handle binary handlers raising exceptions

* Add stt/tts dependencies to voice_assistant

* Include STT audio in pipeline test

* Working on tests

* Refactoring with stages

* Fix tests

* Add more tests

* Add method docs

* Change stt demo/cloud to AsyncIterable

* Add pipeline error events

* Move handler id to separate message before pipeline

* Add test for invalid stage order

* Change "finish" to "end"

* Use enum

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-23 14:44:19 -04:00
Jan Bouwhuis
185d6d74d7
Prepare MQTT platform tests part9 ()
* Tests switch

* Tests text

* Tests update
2023-03-23 19:17:27 +01:00
Jan Bouwhuis
db63c8584e
Prepare MQTT platform tests part8 ()
* Tests state_vacuum

* Tests siren
2023-03-23 19:16:54 +01:00
Jan Bouwhuis
2c1b59be0e
Prepare MQTT platform tests part4 ()
* Tests humidifier

* Tests legacy_vacuum
2023-03-23 19:14:44 +01:00
Jan Bouwhuis
44add1dc11
Prepare MQTT platform tests part3 ()
* Tests cover

* Tests fan
2023-03-23 19:14:08 +01:00
Jan Bouwhuis
8fd88d6703
Prepare MQTT platform tests part2 ()
* Tests button

* Tests camera

* Tests climate
2023-03-23 19:13:36 +01:00
Nalin Mahajan
e290febb38
Bump pyControl4 to 1.1.0 ()
* Bump pyControl4 to 1.1.0

* Remove mock token_expiration from control4
2023-03-23 17:34:38 +01:00
Vincent Knoop Pathuis
cb578c71e0
Add Landis+Gyr missing device class ()
Add missing device class for heat_previous_year_gj
2023-03-23 17:21:21 +01:00
PeteRager
73ed6e039a
Improve logging for unavailable sonos hosts ()
* Repeated warning messages on unavailable manually specified hosts

Sonos logs warning messages every 1 minute 12 seconds for hosts that are not on-line.  This fixes the issue and the warning will be logged the first time, and subsequent logs messages will be at DEBUG level

* Update homeassistant/components/sonos/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Log info message when reconnect succeeds

* Use pop to simplify code

* Add additional test, fix key error with pop

* Use pop with default return value

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update comment, remove unneeded line of code

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-23 16:15:55 +01:00
Vincent Knoop Pathuis
568a731e2d
Use snapshot test for Landis+Gyr ()
Initial commit for snapshot test
2023-03-23 10:30:31 +01:00
Erik Montnemery
50ea0c5cf2
Tweak multiprotocol tests () 2023-03-23 10:12:42 +01:00
rikroe
1a2fa51ac9
Bump bimmer_connected to 0.13.0 () 2023-03-23 10:01:01 +01:00
Erik Montnemery
6739542a5d
Simplify some multi pan code ()
* Simplify some multi pan code

* Adjust ZHA config flow
2023-03-23 09:18:35 +01:00
solazs
b151923619
Add health mode to gree integration ()
Add health mode to gree integration.
2023-03-23 08:56:47 +01:00
Paulus Schoutsen
12352b2ce1
Always enforce URL param ordering for signed URLs ()
Always enforce URL param ordering
2023-03-22 22:54:09 -04:00