Commit graph

74 commits

Author SHA1 Message Date
epenet
9219339762
Use _get_reauth/reconfigure_entry in shelly (#127308) 2024-10-02 16:12:45 +02:00
epenet
46405d7738
Improve type hints in config_flow reconfigure step (#127224) 2024-10-01 22:21:54 +02:00
Shay Levy
8687c32c15
Ignore Shelly IPv6 address in zeroconf (#123081) 2024-08-02 21:56:49 +03:00
Shay Levy
b5367e5994
Fix Shelly device shutdown (#120881) 2024-07-01 19:06:56 +02:00
Shay Levy
178c185a2f
Add Shelly debug logging for async_reconnect_soon (#117945) 2024-05-22 23:15:15 -04:00
Shay Levy
d84890bc59
Bump aioshelly to 10.0.0 (#117728) 2024-05-19 19:25:12 +02:00
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
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +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
Shay Levy
121182167f
Fix Shelly reauth flow (#114180)
* Fix Shelly reauth flow

* Rename shutdown_device to async_shutdown_device
2024-03-25 23:27:44 +02: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
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
Erik Montnemery
b0ed8c4961
Migrate integrations s-t to generic flowhandler (#111865) 2024-02-29 22:16:14 +01:00
Simone Chemelli
7359449636
Code quality for Shelly integration (#109061) 2024-01-30 09:47:52 +01:00
J. Nick Koston
faf52aa2ed
Use new config entry update/abort helper in shelly (#108684)
Use new config entry update/abort helper in shelly

uses the new helper from https://github.com/home-assistant/core/pull/108034
2024-01-22 22:59:17 +01:00
Shay Levy
ad3c78f848
Fix Shelly missing Gen value for older devices (#107294) 2024-01-05 13:32:04 -10:00
Maciej Bieniek
afcf8c9718
Get Shelly RPC device gen from config entry data (#107019)
Use gen from config entry data
2024-01-03 19:45:59 -05: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
c92a90e04d
Disable options flow for Shelly Wall Display (#103988) 2023-11-15 15:45:33 +01: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
Shay Levy
803cd8d9a3
Handle state unknown if last state is missing in Shelly (#86813)
Shelly - handle state unknown if last state is missing
2023-01-27 23:34:56 +01:00
Shay Levy
ae6bc96002
Shelly code quality (#86733) 2023-01-27 10:47:05 +02:00
Jan Bouwhuis
66f12d7dab
Add translations for shelly ble scanner options in option flow (#86218)
* Add translations for shelly ble scanner options

* Remove redundant labels

* isort
2023-01-24 12:25:35 +01:00
Shay Levy
d5797d9f7d
Cleanup Shelly imports (#86359)
* Cleanup Shelly imports

* Cleanup tests
2023-01-22 01:26:54 +02:00
Marc Mueller
d26484d482
Remove unnecessary try-else (4) (#86161) 2023-01-18 13:17:08 +01: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
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
Shay Levy
8e9457d808
Add Shelly support for sleeping Gen2 devices (#79889) 2022-10-18 22:42:22 +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
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
Simone Chemelli
f8333feb51
Add Shelly visit device link to discovered devices (#69185) 2022-04-03 11:53:25 +02:00
Shay Levy
083d51a727
Cleanup - move Shelly logger to const (#68046) 2022-03-12 14:43:57 +02:00
epenet
ba1cc00c24
Use dataclass properties in shelly discovery (#60593)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 11:00:54 +01:00
epenet
44611d7e26
Use dataclass for ZeroconfServiceInfo (#60206)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 22:59:36 +01:00
epenet
4555820987
Use ZeroconfServiceInfo in shelly (#60098) 2021-11-21 16:33:20 -06:00
epenet
b3ffc1e183
Adjust async_step_zeroconf signature for strict typing (#59503)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 18:05:45 +01:00
Michael
6a149706ab
add constant CONF_SLEEP_PERIOD (#59195) 2021-11-06 17:32:58 +02:00
Ville Skyttä
50e0c58310
Use http.HTTPStatus in components/s* (#58291) 2021-10-23 20:49:04 +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
Maciej Bieniek
772cbd59d7
Improve typing in Shelly integration (#52544) 2021-07-21 10:11:44 -07:00
Franck Nijhof
8eb27374c6
Clean up connection classes in integrations P-S (#49893) 2021-04-30 21:04:44 -10:00