epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
epenet
08eb8232e5
Fix namespace-import pylint warning in shelly tests ( #119349 )
2024-06-11 08:08:47 +02:00
Shay Levy
04222c32b5
Handle Shelly BLE errors during connect and disconnect ( #119174 )
2024-06-09 11:59:40 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 ( #113957 )
2024-06-08 17:59:08 +02:00
Maciej Bieniek
709e32a38a
Check if Shelly `entry.runtime_data` is available ( #118805 )
...
* Check if runtime_data is available
* Add tests
* Use `is` operator
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-04 18:40:18 +02:00
epenet
20b5aa3e0e
Move entity_registry_enabled_by_default to decorator [q-z] ( #118793 )
2024-06-04 13:38:32 +02:00
epenet
83e77720e9
Improve type hints for mock_bluetooth/enable_bluetooth ( #118484 )
2024-05-30 22:16:45 -04:00
epenet
98d24dd276
Improve typing for `calls` fixture in tests (m-z) ( #118350 )
...
* Improve typing for `calls` fixture in tests (m-z)
* More
* More
2024-05-29 09:30:41 +02:00
epenet
e58d060f82
Use registry fixtures in tests (s) ( #118295 )
2024-05-28 15:41:03 +02:00
Shay Levy
ecd48cc447
Clean up Shelly unneccesary async_block_till_done calls ( #118141 )
2024-05-26 00:28:48 +03:00
epenet
44f715bd02
Use issue_registry fixture in component tests ( #118041 )
2024-05-24 15:54:20 +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
Simone Chemelli
32a9cb4b14
Add Shelly motion sensor switch ( #115312 )
...
* Add Shelly motion sensor switch
* update name
* make motion switch a restore entity
* add test
* apply review comment
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* rename switch
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* Update tests/components/shelly/test_switch.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* fix ruff
---------
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2024-05-16 12:49:49 +02:00
Shay Levy
d1f88ffd1e
Prevent Shelly raising in a task ( #116355 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-29 08:03:57 -05:00
J. Nick Koston
9ca1d204b6
Fix shelly delaying shutdown ( #116346 )
2024-04-28 11:19:38 -05:00
Maciej Bieniek
51bceb1c99
Fix climate entity creation when Shelly WallDisplay uses external relay as actuator ( #115216 )
...
* Fix climate entity creation when Shelly WallDisplay uses external relay as actuator
* More comments
* Wrap condition into function
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-25 21:06:52 +02:00
Sid
895f73d8e4
Enable Ruff A001 ( #115654 )
2024-04-21 23:25: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
epenet
9204ccfa17
Use is in ConfigEntryState enum comparison in tests (N-Z) ( #114926 )
2024-04-05 17:37:00 +02:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
Maciej Bieniek
c8f282c8bc
Improve Shelly RPC device update progress ( #114566 )
...
Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-02 10:15:58 +02:00
Shay Levy
3e99afdd54
Cleanup Shelly RGBW light entities ( #114410 )
2024-03-30 18:48:57 +03: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
Shay Levy
63275d61a5
Add Shelly RGB/RGBW profiles support ( #113808 )
...
* Add Shelly RGB/RGBW profiles support
* Update homeassistant/components/shelly/light.py
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
* Use walrus in rgbw_key_ids
* Use walrus in light_key_ids
---------
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2024-03-21 21:04:50 +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
Shay Levy
d17e397455
Ignore Shelly block update with cfgChanged None ( #113587 )
2024-03-16 16:18:41 +02:00
Shay Levy
a7fd1c278c
Shelly config flow test wait for tasks to finish ( #113588 )
2024-03-16 16:18:13 +02:00
Simone Chemelli
4095de0566
Allow Shelly CoAP to honour default network adapter ( #110997 )
...
* Allow Shelly CoAP to honor default network adapter
* apply review comment
* 1 more debug log line
* adapt code to library changes
* test
* improve test
* one more test
2024-03-11 09:52:15 +01: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
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration ( #112467 )
2024-03-05 21:16:42 -10:00
Shay Levy
c690a9df83
Fix Shelly RPC RSSI sensor removal ( #111035 )
2024-02-20 21:05:59 -06:00
Simone Chemelli
538ef7764e
Move Shelly thermostat check to status endpoint ( #110543 )
...
* Move Shelly thermostat check to status endpoint
* fix key path
2024-02-14 16:36:42 +01:00
Maciej Bieniek
b60f931e6d
Improve tests for Shelly WallDisplay ( #110435 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 16:51:34 -06:00
Maciej Bieniek
2bd64dba6b
Add `removal_condition` for Shelly analog input sensors ( #110331 )
...
* Add remove condition for analog input sensors
* xpercent key is not present in the payload if it has not been configured
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 20:13:11 +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
4f277b9509
Add pulse counter sensors for Shelly ( #110248 )
...
* Add pulse counter sensors to Shelly
* Add a unit for the pulse counter
* Fix removal condition
* xtotal key is not present in the payload if it has not been configured
* Update test
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 09:42:38 +01:00
Maciej Bieniek
326da81656
Add icon translations to Shelly ( #110183 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-11 14:07:10 -06:00
Maciej Bieniek
b276a7863b
Add missing `unique_id` check for Shelly Analog Input sensor ( #109888 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 11:20:53 -06:00
Maciej Bieniek
b5b09446a1
Add analog input value sensor for Shelly ( #109312 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-07 10:22:00 -06:00
Maciej Bieniek
d0384480f5
Test unique IDs for Shelly entities ( #109879 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 10:18:00 -06:00
Erik Montnemery
aea81a180c
Fix Shelly white light test ( #109855 )
2024-02-07 15:39:49 +01:00
J. Nick Koston
8d4f32645d
Add tests for shelly switch unique ids ( #109617 )
2024-02-04 11:23:33 -06:00
Simone Chemelli
d4c91bd0b7
Add a repair issue for Shelly devices with unsupported firmware ( #109076 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-30 10:59:33 -10:00
Simone Chemelli
6174aa4e59
Remove Shelly RSSI sensor if Wi-FI is not configured ( #108390 )
...
* Remove Shelly RSSI sensor if Wi-FI is not configured
* fix tests
2024-01-30 21:18:54 +01:00
Simone Chemelli
075dab250e
Code quality for Shelly tests ( #109054 )
...
* Code quality for Shelly tests
* clean-up
2024-01-29 16:02:51 +01:00
John Allen
a385ca93bd
Send target temp to Shelly TRV in F when needed ( #108188 )
2024-01-17 22:06:11 +02:00
Shay Levy
28e18ce7bf
Fix Shelly Gen1 entity description restore ( #108052 )
...
* Fix Shelly Gen1 entity description restore
* Update tests/components/shelly/test_sensor.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-15 20:53:56 +02:00
J. Nick Koston
b47861d973
Update shelly bluetooth scanner to version 2.0 ( #107917 )
2024-01-14 09:44:42 -10:00