Commit graph

131 commits

Author SHA1 Message Date
Jan Bouwhuis
5d4c4a1293
Add humidifier support for Alexa () 2022-11-28 09:55:22 -10:00
epenet
e84e5f134e
Use US_CUSTOMARY_SYSTEM in tests ()
* Use US_CUSTOMARY_SYSTEM in tests

* Don't update test_unit_system
2022-10-20 15:42:23 +02:00
epenet
0d696b84b2
Cleanup root component imports in tests () 2022-09-21 06:57:41 -10:00
epenet
fe747601ff
Cleanup DeviceClass and StateClass in tests () 2022-09-20 10:49:11 -04:00
Erik Montnemery
d034ed1fc2
Remove some error prone code from Alexa tests () 2022-08-17 07:54:54 -04:00
Jan Bouwhuis
e6e5b98bc7
Allow climate operation mode fan_only as custom mode in Alexa ()
* Add support for FAN_ONLY mode

* Tests for fan_only as custom mode
2022-08-04 09:13:20 +02:00
Mike Degatano
9392f59913
Trigger Alexa routines from toggles and buttons () 2022-06-29 13:56:02 +02:00
Erik Montnemery
e45d4d53dd
Correct time stamp format in Alexa responses () 2022-04-22 08:44:59 -07:00
Erik Montnemery
dc8e87a6f7
Exclude hidden entities from alexa () 2022-03-23 12:40:28 +01:00
Erik Montnemery
c109d59862
Fix comments in Alexa () 2022-01-17 14:22:04 +01:00
Erik Montnemery
be628a7c4d
Keep track of Alexa authorization status () 2022-01-13 09:47:31 -08:00
Erik Montnemery
6ffe04b788
Remove constant DEFAULT_CONFIG from alexa tests () 2022-01-13 11:35:16 +01:00
Franck Nijhof
99b2161365
Add input_button support to Alexa () 2021-12-23 07:36:45 +01:00
Franck Nijhof
7a0ff4e2e1
Add button support to Alexa () 2021-11-23 08:19:13 -08:00
Jan Bouwhuis
a679ebcee7
Patch for Alexa percentage_step to precision ()
* speed_step must be an integer and a divider of 100

* use percentage_step in tests to test patch

* test with not supported percentage_step

* undo change in test_capabilities

* Use a default precision of one not percentage_step

* typo 2

* Update tests/components/alexa/test_smart_home.py

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

* Update homeassistant/components/alexa/capabilities.py

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

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-10-20 13:05:11 +02:00
Jan Bouwhuis
e73ca9bd18
Alexa fix Fan support and cleanup ()
* del PowerLevelController, ena fan PowerController

* Use AlexaRangeContoller for speed or default

* Update tests

* no-else-return

* Avoid cases with only one preset_mode

* Only report ghost_mode to Alexa - fix bug

* Add some tests for patched code

* pylint

* pylint and tests with one preset_mode

* correct ghost preset mode check in test

* add tests for RangeController

* ghost preset_mode locale agnostic

* isort

* Update homeassistant/components/alexa/capabilities.py

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

* Update homeassistant/components/alexa/entities.py

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

* Update homeassistant/components/alexa/entities.py

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

* Update homeassistant/components/alexa/entities.py

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

* Update homeassistant/components/alexa/entities.py

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

* Update entities.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-09-24 08:14:45 +02:00
Jan Bouwhuis
755835ee2e
Alexa - Remove legacy speed support for fan platform ()
* Remove legacy fan speed support

* remove fan range controller tests

* retrigger tests
2021-09-06 10:19:57 +02:00
Jan Bouwhuis
7403ba1e81
Alexa fan preset_mode support ()
* fan preset_modes

* process preset mode updates from alexa correctly

* add tests

* codecov patch additional tests
2021-05-31 20:58:01 +02:00
Paulus Schoutsen
5ea2dd8ce3
Alexa: Set Equalizer property to retrievable () 2021-05-17 09:26:37 +02:00
Erik Montnemery
1230c46e1e
Use supported_color_modes in alexa () 2021-04-14 09:18:49 +02:00
Paulus Schoutsen
7c2545af6e
Use async_capture_events to avoid running in executor () 2021-02-26 13:28:52 -08:00
J. Nick Koston
6707496c5d
Update alexa for new fan model () 2021-02-19 22:45:14 -08:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
ochlocracy
178b2d8c22
Update display categories in Alexa ()
* Add new display categories from Alexa Smart Home API

* Update Vacuum entities to use VACUUM_CLEANER category.

* Update Automation entities to use ACTIVITY_TRIGGER category.

* Update tests for Automation entities to use ACTIVITY_TRIGGER category.
2020-10-11 11:09:05 -05:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Bram Kragten
7d77fa92c2
Add mode info attributes to script and automation ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-07-14 10:47:59 -07:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Paulus Schoutsen
2a86d52dba
Alexa media player only include equalizer if supported sound mode () 2020-05-30 21:42:40 -07:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url () 2020-05-08 02:29:47 +02:00
J. Nick Koston
6f6c670b3b
Make alexa and google aware of DEVICE_CLASS_GATE () 2020-05-03 13:29:12 -07:00
Paulus Schoutsen
76f392476b
Use a future for mock coro () 2020-04-30 16:31:00 -07:00
ochlocracy
0d598dd6d6
Modify requirements for CameraStreamController in Alexa () 2020-04-21 10:46:56 -07:00
Franck Nijhof
476072927a
Collection of random test improvements () 2020-04-06 10:09:44 -07:00
Franck Nijhof
03dd92d51b
Use set literals in tests () 2020-04-05 02:20:09 +02:00
ochlocracy
28a2c9c653
Implement Alexa.CameraStreamController in Alexa ()
* Implement Alexa.CameraStreamController.

* Add dependencies.

* Add camera helpers for image url, and mjpeg url.

* Remove unsupported AlexaPowerController from cameras.

* Refactor camera_stream_url to hass_url

* Declare HLS instead of RTSP.

* Add test for async_get_image_url() and async_get_mpeg_stream_url().

* Sort imports.

* Fix camera.options to camera.stream_options. ()


(cherry picked from commit 9af95e8577)

* Remove URL configuration option for AlexaCameraStreamController.

* Update test_initialize_camera_stream.

* Optimize camera stream configuration.

* Update Tests for optimized camera stream configuration.

* Sort imports.

* Add check for Stream integration.

* Checks and Balances.

* Remove unnecessary camera helpers.

* Return None instead of empty list for camera_stream_configurations().
2020-03-27 21:19:11 -07:00
Thomas Hollstegge
f3c07a5653
Alexa: Add support for starting and cancelling timers () 2020-03-09 21:59:06 -07:00
Thomas Hollstegge
22b5690607
Alexa: Support vacuums without turn_on/turn_off feature ()
* Alexa: Support vacuums without turn_on/turn_off feature
2020-03-09 11:58:47 -04:00
ochlocracy
fa4f27f78e
Remove AlexaPowerController from device_class garage covers in… () 2020-03-09 08:25:33 -07:00
ochlocracy
4602d7370c
Remove Alexa.InputController from devices without supported inputs in Alexa ()
* Yield Alexa.InputController only for supported inputs.

* Add Comment.

* Comment fix.
2020-02-03 16:19:40 -08:00
ochlocracy
c8d9b83b24
Update StepSpeaker and Speaker interfaces in Alexa ()
* Yield only one Speaker interface.

* Yield PowerController only is supported.

* Revert "Yield PowerController only is supported."

This reverts commit c0dbf7e4

* Add Alexa.Speaker interface properties.

* Refactor tests for Alexa.Speaker and Alexa.StepSpeaker.

* Code Smell Change.

* Fix R1705: Unnecessary "elif" after "return".
2020-02-03 14:20:39 -08:00
ochlocracy
e796de6c59
Filter int in fan speed_list when yielding RangeController in Alexa ()
* Allow for int in fan speed_list.

* Test for int in fan speed_list.

* prevent yielding preset for int labels.
2020-02-01 16:44:40 -08:00
ochlocracy
83dff16e1e
Add support for rangeValueDeltaDefault in Alexa AdjustRangeValue directive ()
* Update tests with rangeValue and rangeValueDelta to use int.

* Add support for rangeValueDeltaDefault for covers.

* Update tests for range changes.

* Test for AdjustRangeValue with rangeValueDeltaDefault True.

* Update tilt error.
2020-01-29 09:04:57 -08:00
ochlocracy
7116c7404a
Add PowerController to covers in Alexa ()
* Add PowerController to covers.

* Comment Fix.

* Update test device_class.

* Update Comment.
2020-01-29 09:03:20 -08:00
Paul Daumlechner
ed970797be Fix attribute in Alexa service call for cover tilt ()
* Update attribute in Alexa service call for cover tilt

* Update Tests to fix Tilt Position call.

Co-authored-by: ochlocracy <5885236+ochlocracy@users.noreply.github.com>
2020-01-27 19:28:40 -05:00
ochlocracy
0eee152386 Include supported states in Alexa SecurityPanelController configuration object ()
* Update Security Panel Controller.

* Update Security Panel Controller.

* Sort imports.
2020-01-24 17:57:58 -08:00
ochlocracy
4015a046d2 Update AdjustRange Handler Service Calls. ()
Add a AlexaGlobalCatalog value to all labels.
2020-01-22 11:04:31 -08:00
ochlocracy
1d41cf96ca Fix Alexa semantics for covers with tilt support. ()
* Fix Alexa semantics for covers with tilt support.

* Clarify wording.

* Korrect grammar.
2020-01-17 15:04:46 -08:00
ochlocracy
bb42ff93f4 Add support for vacuums to Alexa. () 2020-01-15 09:15:31 -08:00
ochlocracy
605b0ceb5f Add support for variable fan speed list length. () 2020-01-10 17:26:37 -08:00
ochlocracy
74a198e37b Implement TimeHoldController Interface in Alexa ()
* Implement Alexa.TimeHoldController Interface

* Add test for timer resume directive.
2020-01-10 23:11:50 +01:00