Marco Ranieri
54223fe06c
Enable Alexa Unlock directive ( #97127 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-08-14 17:47:50 +02:00
Jan Bouwhuis
500d9a4da0
Alexa strict type hints ( #97485 )
...
* Enable strict typing
* Adjustments for stict typing
2023-08-08 17:15:25 +02:00
Jan Bouwhuis
2a48159b69
Alexa typing part 6 (state_report) ( #97920 )
...
state_report
2023-08-08 15:46:54 +02:00
Jan Bouwhuis
0614702f98
Alexa typing part 5 (smart_home) ( #97918 )
...
* smart_home
* Fix test_disabled
* Remove unused type ignore
2023-08-08 11:48:50 +02:00
Jan Bouwhuis
3f542c47fd
Alexa typing part 4 (capabilities) ( #97915 )
...
* capabilities
* hvacmode
* tweaks
* name
* Corrections
* Missed hints
* remove unreachabe code
2023-08-08 11:07:52 +02:00
Jan Bouwhuis
d403625e60
Alexa typing part 3 (handlers) ( #97912 )
...
handlers
2023-08-07 23:59:56 +02:00
Jan Bouwhuis
5657cfa052
Alexa typing part 2 ( #97911 )
...
* Alexa typing part 2
* Update homeassistant/components/alexa/intent.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Missed type hints
* precision
* Follow up comment
* value
* revert abstract class changes
* raise NotImplementedError()
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-08-07 23:26:44 +02:00
Jan Bouwhuis
40a221c923
Alexa typing part 1 ( #97909 )
...
* Typing part 1
* mypy
* Correct typing for logbook
2023-08-07 20:36:30 +02:00
Jan Bouwhuis
2e8e5aabae
Refactor alexa modules to avoid circular deps ( #97618 )
...
* Refactor alexa modules to avoid circula deps
* Add test http api auth and AlexaConfig
* Update test
* Improve test
2023-08-05 21:32:53 +02:00
Jan Bouwhuis
3183ce7608
Add doorbell event support to alexa ( #97092 )
2023-07-23 20:16:46 +02:00
Mike Keesey
44aa531a51
Alexa temperature adjustment handle multiple setpoint ( #95821 )
...
* Alexa temperature adjustment handle multiple setpoint
In "auto" mode with many thermostats, the thermostats expose both an
upper and lower setpoint representing a range of temperatures. When a
temperature delta is sent from Alexa (e.g. "lower by 2 degrees), we need
to handle the case where the temperature property is not set, but
instead the upper and lower setpoint properties are set. In this case,
we adjust those properties via service call instead of the singular
value.
* Updating tests to fix coverage
2023-07-18 01:12:15 +02:00
Ville Skyttä
ced67e5800
Import `util.dt` as `dt_util` in `components/[a-d]*` ( #93756 )
2023-05-30 00:02:06 +03:00
Erik Montnemery
937ebb374c
Enable strict type checks of cloud ( #92576 )
...
* Enable strict type checks of cloud
* Fix circular import
* Address review comments
* Apply suggestions from code review
2023-05-24 11:46:11 +02:00
Flo
0f2caf864a
Alexa Intent: Use the 'id' field and expose nearest resolutions as variables ( #86709 )
...
* Use the 'id' field and nearest resolutions
Expose nearest Resolution (ID and Value) as Variables
* Add more specific type hints
* Change type definition of request
* Add deprecation warning and remove variables
* Remove deprecation warning & update tests
* Fix wrong value assignment
* revert future changes
2023-05-10 21:25:08 +02:00
Erik Montnemery
7d29d584fd
Fix race in Alexa async_enable_proactive_mode ( #92785 )
2023-05-09 19:58:00 +02:00
Erik Montnemery
b6664ce367
Improve cloud migration ( #92520 )
...
* Improve cloud migration
* Tweak
* Use entity_ids func
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-05-04 23:10:43 -04:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ( #92396 )
...
* 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 ( #92363 )
2023-05-02 22:08:09 +02:00
Erik Montnemery
058bb4c3e6
Drop deepcopy of Alexa config ( #89284 )
2023-03-07 16:16:46 +01:00
epenet
4a3c0cd0a8
Adjust docstrings for ruff D404 ( #89077 )
2023-03-03 11:26:13 +01:00
epenet
87dc692a20
Use json_loads_object in alexa ( #88610 )
2023-02-22 22:01:32 +01:00
Erik Montnemery
231aad7a68
Sort manifests 1 ( #87022 )
2023-02-08 20:29:44 +01:00
Erik Montnemery
e4285b0186
Comment lack of rounding in AlexaTemperatureSensor ( #87561 )
2023-02-06 19:37:14 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
epenet
8efd01b2e8
Type fixes for alexa entities ( #87077 )
...
* Type fixes for alexa entities
* Adjust get_type
2023-02-01 14:07:32 +01:00
Jan Bouwhuis
f182e314e5
Add number platform support to Alexa ( #86553 )
...
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2023-01-25 13:34:53 +01:00
Marc Mueller
60b799aac9
Misc typing improvements ( #86550 )
2023-01-25 11:05:36 +01:00
Franck Nijhof
91aaca6471
Code styling tweaks to the Alexa integration ( #86121 )
2023-01-18 01:01:30 +02:00
Franck Nijhof
b0cee0bc46
String formatting and max line length - Part 1 ( #84390 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
epenet
91d6d620c2
Use new unit enums in alexa ( #83409 )
...
* Use new unit enums in alexa
* Adjust for mypy
2022-12-06 17:31:40 +01:00
Marc Mueller
1f30d761a6
Code style improvements [alexa] ( #83258 )
2022-12-05 09:36:03 +01:00
Jan Bouwhuis
fcccc44ccb
Cleanup unused AlexaPercentageController code ( #82880 )
2022-11-29 10:06:53 +01:00
Jan Bouwhuis
5d4c4a1293
Add humidifier support for Alexa ( #81329 )
2022-11-28 09:55:22 -10:00
Kevin Stillhammer
f43f0c4bcc
Use assignment expression for alexa init ( #81242 )
2022-11-23 20:54:16 +01:00
epenet
825f9502ad
Align temperature conversion with other converters ( #79521 )
...
* Align temperature conversion with other converters
* Add comments and docstring
* Align tests
2022-10-03 10:09:55 +02:00
epenet
24c26dc032
Use unit_conversion in components ( #79204 )
...
* Use unit_conversion in components
* Two more
2022-09-28 16:05:31 +02:00
Marc Mueller
ed812b5ee4
Remove unused alexa code ( #79100 )
2022-09-26 19:22:07 +02:00
epenet
416a5cb279
Import constants from component root ( #78395 )
2022-09-14 00:12:54 +02:00
epenet
ff356205bf
Use platform constants from root ( #78032 )
2022-09-08 12:24:45 +02:00
epenet
f87e873275
Adjust alexa imports ( #78013 )
2022-09-08 09:45:22 +02:00
Wagner Sartori Junior
8bb182dffb
Sync supported locales from alexa official documentation into alexa smart home integration ( #77536 )
2022-08-30 07:55:52 -04:00
Jan Bouwhuis
e6e5b98bc7
Allow climate operation mode fan_only as custom mode in Alexa ( #76148 )
...
* Add support for FAN_ONLY mode
* Tests for fan_only as custom mode
2022-08-04 09:13:20 +02:00
epenet
89729b2c49
Improve Registry typing in Alexa handlers ( #75921 )
2022-08-01 00:39:38 +02:00
epenet
98293f2179
Use climate enums in alexa ( #75911 )
2022-07-31 21:29:54 +02:00
João Henriques
fb52f5098f
Add en-GB locale for AlexaMotionSensor and AlexaContactSensor ( #75705 )
...
Added en-GB as supported locale for AlexaMotionSensor and AlexaContactSensor
2022-07-26 17:36:46 -04:00
Thomas Hollstegge
f0cc565f6c
Fix Alexa: Only trigger doorbell event on actual state change to "ON" ( #74924 )
...
* Alexa: Only trigger doorbell event on actual state change to "ON"
* Remove unnecessary check for new_state
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* First check state is `on` before checking the old state
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-07-14 12:40:53 -07:00
Thomas Hollstegge
261c52e260
Alexa: Fix duplicate proactive reports ( #74930 )
2022-07-10 15:10:55 -07:00
Paulus Schoutsen
7573dc34aa
Treat thermostat unknown state like unavailable in alexa ( #74220 )
2022-06-30 10:00:10 -07:00
Mike Degatano
9392f59913
Trigger Alexa routines from toggles and buttons ( #67889 )
2022-06-29 13:56:02 +02:00
w35l3y
beab6e2e5f
Fix ended session when there isn't any response from the user ( #72218 )
...
* Fix end session when there isn't any response
This PR fixes #72153
* Added test case as requested
https://github.com/home-assistant/core/pull/72218#discussion_r881584812
2022-06-03 15:32:22 +02:00
J. Nick Koston
0248a8710f
Always pass the source of the trigger for logbook context messages ( #72333 )
2022-05-23 13:35:45 -05:00
Franck Nijhof
8f4caf4141
Clean up accessing event helpers via hass ( #72011 )
2022-05-17 19:36:29 +02:00
Franck Nijhof
5f44d0f8f9
Clean up accessing storage.Store helper via hass ( #72009 )
2022-05-17 18:45:57 +02:00
Marc Mueller
9b9b553521
Disable no-self-use [pylint] ( #70641 )
...
* Disable no-self-use
* Remove disable comments
2022-04-25 07:41:01 -07:00
Erik Montnemery
e45d4d53dd
Correct time stamp format in Alexa responses ( #70267 )
2022-04-22 08:44:59 -07:00
Franck Nijhof
1e4aacaeb1
Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum ( #69861 )
2022-04-18 19:37:32 +02:00
epenet
4f494a876e
Use EntityFeature enums in alexa ( #69570 )
2022-04-07 14:46:50 +02:00
Marc Mueller
53245c6523
Update pylint to 2.13.0 ( #68656 )
2022-03-25 15:14:48 -07:00
Erik Montnemery
dc8e87a6f7
Exclude hidden entities from alexa ( #68555 )
2022-03-23 12:40:28 +01:00
Paulus Schoutsen
9c440d8aa6
Guard for non-string inputs in Alexa ( #67348 )
2022-02-27 12:59:05 -08:00
Marc Mueller
ec980a574b
Improve typing [util.decorator] ( #67087 )
2022-02-23 20:58:42 +01:00
Paulus Schoutsen
bf138c4ffb
Alexa to handle brightness and catch exceptions ( #65322 )
2022-01-31 15:01:46 -08:00
w35l3y
076faaa4a4
Add support to reprompt user ( #65256 )
2022-01-31 10:23:26 -08:00
Erik Montnemery
7b8bbc37df
Include entity_id in Alexa state report error log ( #64898 )
2022-01-25 11:11:06 +01:00
epenet
3a09090a4b
Drop use of deprecated ENTITY_CATEGORIES ( #64607 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 13:36:42 +01:00
Erik Montnemery
e6899416e1
Suppress Alexa state reports when not authorized ( #64064 )
2022-01-17 09:14:26 -08:00
Erik Montnemery
c109d59862
Fix comments in Alexa ( #64289 )
2022-01-17 14:22:04 +01:00
Erik Montnemery
be628a7c4d
Keep track of Alexa authorization status ( #63979 )
2022-01-13 09:47:31 -08:00
Franck Nijhof
20bdcc7fff
Replace hass.helpers: async_get_clientsession() ( #63910 )
2022-01-11 17:33:50 +01:00
Marc Mueller
1b32385ab2
Use const imports [a-e] ( #63467 )
2022-01-05 16:44:13 +01:00
epenet
7cf66fa72d
Add basic type hints to alexa ( #62878 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-29 12:11:33 +01:00
Franck Nijhof
99b2161365
Add input_button support to Alexa ( #62592 )
2021-12-23 07:36:45 +01:00
epenet
af603d0427
Use new DeviceClass enums in alexa ( #61263 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:35:52 +01:00
Erik Montnemery
af2e95d891
Guard against missing states in Alexa state updates ( #61152 )
2021-12-07 12:44:50 +01:00
Jérôme W
400b7a22bd
Add media player volume control in `fr-FR` with Alexa ( #60489 )
...
* media player volume control in `fr-FR` with Alexa
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-06 17:49:47 +01:00
Franck Nijhof
7a0ff4e2e1
Add button support to Alexa ( #60163 )
2021-11-23 08:19:13 -08:00
J. Nick Koston
10d6247fee
Bump to aiohttp 3.8.0 ( #58974 )
2021-11-04 10:07:50 -05:00
Marc Mueller
7063c05127
Use assignment expressions 33 ( #58717 )
2021-10-30 16:32:41 +02:00
Erik Montnemery
a0a8b9db26
Add entity category 'system' ( #58595 )
...
* Add entity category 'hidden'
* Update cloud
* Update Google assistant
* Update Alexa
* Fix tests
* Add ENTITY_CATEGORIES constant
* Rename ENTITY_CATEGORY_HIDDEN to ENTITY_CATEGORY_SYSTEM
* Correct import in motioneye
2021-10-28 14:36:41 +02:00
Ville Skyttä
a598d9f353
Use HTTPStatus instead of HTTP_ consts and magic values in components/a* ( #57988 )
2021-10-22 14:21:34 +02:00
Marc Mueller
62c20860ac
Use assignment expressions 22 ( #57971 )
2021-10-21 08:33:10 +02:00
Jan Bouwhuis
a679ebcee7
Patch for Alexa percentage_step to precision ( #58062 )
...
* 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
Marc Mueller
2b72b7b7b9
Use assignment expressions 09 ( #57790 )
2021-10-17 20:19:56 +02:00
Marc Mueller
5048bad050
Use assignment expressions 05 ( #57785 )
2021-10-17 19:56:00 +02:00
Erik Montnemery
7c1ba8be3d
Don't expose config or diagnostic entities to Amazon Alexa by default ( #57770 )
2021-10-15 09:09:24 -07:00
Jan Bouwhuis
e73ca9bd18
Alexa fix Fan support and cleanup ( #56053 )
...
* 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
Elliot Morales Solé
097fae0348
Correct Alexa scene activation ( #56469 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-20 22:51:17 -07:00
Jan Bouwhuis
755835ee2e
Alexa - Remove legacy speed support for fan platform ( #55174 )
...
* Remove legacy fan speed support
* remove fan range controller tests
* retrigger tests
2021-09-06 10:19:57 +02:00
Milan Meulemans
020759d01d
Activate mypy for Alexa ( #54042 )
2021-08-10 10:46:33 +02:00
J. Nick Koston
4d122fc366
Update alexa lock to support locking, unlocking, jammed ( #52841 )
2021-07-20 23:21:05 -05:00
Jan Bouwhuis
7403ba1e81
Alexa fan preset_mode support ( #50466 )
...
* fan preset_modes
* process preset mode updates from alexa correctly
* add tests
* codecov patch additional tests
2021-05-31 20:58:01 +02:00
Erik Montnemery
4d428b87cb
Remove incorrect check in Alexa for SERVICE_ALARM_DISARM fail ( #51224 )
2021-05-29 14:06:02 +02:00
starkillerOG
e9ff4b1342
Fix alexa not discovering devices when sound mode device present ( #49628 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-25 08:35:40 -07:00
Shay Levy
cf228e3fe5
Add constructor return type in integrations A-D ( #50903 )
2021-05-20 18:51:39 +03:00
Paulus Schoutsen
5ea2dd8ce3
Alexa: Set Equalizer property to retrievable ( #50730 )
2021-05-17 09:26:37 +02:00
starkillerOG
db7331847f
AlexaEqualizerController fix wrong class beeing used ( #50724 )
2021-05-16 20:49:48 -07:00
Marc Mueller
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
Erik Montnemery
3d90d6073e
Add common light helpers to test for feature support ( #49199 )
2021-04-15 20:32:27 +02:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00