Commit graph

145 commits

Author SHA1 Message Date
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ()
* Allow exposing any entity to the default conversation agent

* Tweak

* Fix race, update tests

* Update tests
2023-05-03 09:45:54 -04:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ()
* Don't use storage collection helper in ExposedEntities

* Fix tests
2023-05-03 12:39:22 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants () 2023-05-02 22:08:09 +02:00
J. Nick Koston
99b58f157e
Bump PyJWT to 2.6.0 ()
* Bump PyJWT to 2.6.0

* fix time being frozen too late which makes the access token creation time in the future

* revert zha change

* fix repairs test

* fix ical test
2023-03-22 20:00:47 -04:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
07a1a0efa9
Add type hints to integration tests (part 1) () 2023-02-09 16:09:13 +01:00
epenet
2545694d41
Add type hints to integration tests (a) ()
* Add type hints to accuweather tests

* Adjust a** components

* Adjust aiohttp_client

* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
epenet
59ca7780fa
Add typing to tests with single hass argument () 2023-02-07 15:01:16 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ()
* Add return type to tests without arguments

* Black

* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Franck Nijhof
fca3382d37
Migrates tests to use MediaPlayerEntityFeature enum () 2023-01-27 10:56:40 +01:00
Jan Bouwhuis
f182e314e5
Add number platform support to Alexa ()
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2023-01-25 13:34:53 +01:00
Franck Nijhof
91aaca6471
Code styling tweaks to the Alexa integration () 2023-01-18 01:01:30 +02:00
Michael
2850583085
Replace the usage of unit constants by enumerations in Tests [a-e] () 2023-01-15 14:44:01 +01:00
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