Maciej Bieniek
789073384b
Support reconfigure flow in Shelly integration ( #117525 )
...
* Support reconfigure flow
* Update strings
* Add tests
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-16 17:47:12 +02:00
Shay Levy
291df6dafe
Bump aioshelly to 9.0.0 ( #114025 )
...
* Update Shelly to use initialize from aioshelly
* Save indentation in _async_device_connect
* Use firmware_supported property from aioshelly
* Review comments
* Bump aioshelly
* Fix lint errors
* Test RPC initialized update
2024-04-14 18:07:26 +03:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Simone Chemelli
8728057b1b
Add support for Shelly RPC devices custom TCP port ( #110860 )
...
* First coding
* add port to config_entry + gen1 not supported msg
* fix async_step_credentials
* strings
* fix reauth
* fix visit device link
* increased MINOR_VERSION
* apply review comments
* align to latest aioshelly
* missing tests
* introduce port parameter
* update tests
* remove leftover
* remove "port" data_description key
* missing key
* apply review comments
* apply more review comments
* Add tests
* apply review comment
* apply review comment (part 2)
* description update
* fine tuning description
* fix test patching
---------
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2024-03-21 19:58:56 +01:00
Shay Levy
a7fd1c278c
Shelly config flow test wait for tasks to finish ( #113588 )
2024-03-16 16:18:13 +02:00
J. Nick Koston
a2318c26c9
Run debouncer tasks eagerly to avoid scheduling on the event loop ( #112789 )
2024-03-10 08:37:10 -10:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
Maciej Bieniek
8de038527f
Improve type annotation in Shelly tests ( #110361 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 10:23:55 -06:00
Maciej Bieniek
bf93929826
Add support for Shelly Gen3 devices ( #104874 )
...
* Add support for Gen3 devices
* Add RPC_GENERATIONS const
* Add gen3 to tests
* More tests
* Add BLOCK_GENERATIONS const
* Use *_GENERATIONS constants from aioshelly
2023-12-11 22:58:56 +01:00
Maciej Bieniek
35b733fa2c
Bump `aioshelly` to version 7.0.0 ( #105384 )
...
* Remove get_rpc_device_sleep_period() function
* Bump aioshelly version to 7.0.0
* Remove firmware compatibility check from BLE scanner
* Remove firmware compatibility check from light transition
* Update default fw ver
* Use LightEntityFeature in tests
2023-12-09 17:12:05 +02:00
Maciej Bieniek
2515dbeee1
Bump aioshelly to version 6.1.0 ( #104456 )
...
* Bump aioshelly
* Use MODEL_* consts from aioshelly
* Add missing models to BATTERY_DEVICES_WITH_PERMANENT_CONNECTION
2023-11-24 20:55:00 +02:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
Maciej Bieniek
05039036f1
Add compatibility with sleeping Shelly gen2 devices with firmware 1.0.0 ( #94864 )
2023-06-21 12:01:17 +02:00
Marvin Wichmann
795ef075da
Restore original websocket commands for config entries ( #93707 )
...
Restore original websocket commands and add "config_entries/get_single"
2023-05-28 21:40:35 -04:00
Erik Montnemery
b754f03eb1
Add WS command for getting a config entry ( #93387 )
...
* Add WS command for getting a config entry
* Update tests
2023-05-23 10:44:02 +02:00
epenet
80ee196fd8
Add type hints to integration tests (part 19) ( #88178 )
2023-02-15 18:07:40 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) ( #87706 )
2023-02-08 08:12:54 -08:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Shay Levy
f9f9741d2a
Separate Shelly tests parameters in parametrize ( #86778 )
...
Shelly tests - separate parameters in parametrize
2023-01-27 14:28:35 +01:00
Shay Levy
ae6bc96002
Shelly code quality ( #86733 )
2023-01-27 10:47:05 +02:00
Shay Levy
d5797d9f7d
Cleanup Shelly imports ( #86359 )
...
* Cleanup Shelly imports
* Cleanup tests
2023-01-22 01:26:54 +02:00
Shay Levy
df77646c8a
Fix Shelly sleeping Gen2 - do not refresh from zeroconf discovery ( #86296 )
2023-01-20 21:27:31 +02:00
J. Nick Koston
d949f51f10
Handle ignored shelly entries when discovering via zeroconf ( #86039 )
...
fixes https://github.com/home-assistant/core/issues/85879
2023-01-16 11:21:49 -10:00
J. Nick Koston
3ac5b780ff
Reject the WiFI AP when considering to update a shelly config entry from zeroconf ( #85265 )
...
Reject the WiFI AP IP when considering to update a shelly config entry from zeroconf
fixes #85180
2023-01-06 01:44:10 +02:00
J. Nick Koston
b7c7e7f57b
Try to reconnect disconnected shelly devices as soon as they discovered by zeroconf ( #83872 )
2022-12-13 14:22:34 -10:00
Shay Levy
1e68e8c4b4
Add Shelly tests coverage ( #82642 )
...
* Add Shelly tests coverage
* Review comments
* Remove leftovers
2022-11-24 20:07:19 +02:00
J. Nick Koston
8da969b767
Disable BLE options flow for sleepy shelly devices ( #82283 )
2022-11-17 20:39:51 +02:00
J. Nick Koston
435fc23737
Add shelly ble scanner support ( #82007 )
2022-11-15 12:34:45 -06:00
Shay Levy
aea7a9af18
Bump aioshelly to 4.0.0 ( #80423 )
...
* Bump aioshelly to 4.0.0
* Remove leftover
* Fix number platform
* Set last_update_success to false upon failure in number and climate
* Set last_update_success upon failurie in entity
2022-10-20 15:08:48 +03:00
Maciej Bieniek
8719829fbe
Add missing error catch in Shelly reauth flow ( #79205 )
2022-09-28 11:00:27 -04:00
Maciej Bieniek
c46f55caa8
Add reauth flow to Shelly integration ( #78786 )
2022-09-24 22:01:49 -04:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Shay Levy
74e8b076e5
Fix Shelly missing key config flow ( #72116 )
2022-05-20 12:05:53 +03:00
Simone Chemelli
4a95539d9d
Warn user if "model" key is missing from Shelly firmware ( #71612 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-18 10:29:02 -07:00
Shay Levy
d4d819679c
Add Shelly gen2 authentication support ( #69753 )
2022-04-14 00:30:03 +03:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
Simone Chemelli
07c09ab268
Add new name handling for Shelly RPC devices ( #60539 )
2021-11-29 16:16:49 +01:00
epenet
77dfeb062f
Update ZeroconfServiceInfo in tests (n-t) ( #60219 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 10:35:44 -06:00
epenet
4555820987
Use ZeroconfServiceInfo in shelly ( #60098 )
2021-11-21 16:33:20 -06:00
Ville Skyttä
50e0c58310
Use http.HTTPStatus in components/s* ( #58291 )
2021-10-23 20:49:04 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Shay Levy
f1a88f0563
Add config flow support for RPC device ( #56118 )
2021-09-11 23:28:33 +03:00
Shay Levy
8c3c2ad8e3
Updated changes for aioshelly 1.0.0 ( #56083 )
2021-09-11 00:48:55 +03:00
Paulus Schoutsen
34b9e6f6fc
Shelly: set confirm only ( #47608 )
2021-03-09 13:13:43 +01:00
Maciej Bieniek
b645b151f9
Catch AuthRequired exception in confirm discovery step for Shelly config flow ( #46135 )
2021-02-24 07:13:32 -06:00
Maciej Bieniek
2fc1c19a45
Allow to setup of a previously discovered sleeping Shelly device ( #46124 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-02-09 09:28:40 +01:00
Shay Levy
0875f654c8
Add support for Shelly battery operated devices ( #45406 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-03 17:03:22 +01:00
Paulus Schoutsen
f1c116831f
Patch Shelly test setting up entry ( #44842 )
2021-01-05 18:35:54 +01:00