Simone Chemelli
8bedf97382
Remove helpers and align coding style in Shelly tests ( #140080 )
...
* Cleanup hass.states method in Shelly tests (part 1)
* remove helper functions and align coding style
* missed
* revert unwanted changes
* apply review comment
* apply review comment
* apply review comment
* apply ATTR where missing
* apply walrus
* add missed walrus
* add walrus to entity_registry.async_get
* minor tweak
* align after merge
2025-03-26 10:05:42 +01:00
Maciej Bieniek
95cc3e31f5
Add exceptions translations for Shelly integration ( #141071 )
...
* Add exceptions translations
* Improve exception strings for update platform
* Fix tests
* Improve device_communication_error
* Remove error placeholder
* Improve tests
* Fix test_rpc_set_state_errors
* Strings improvement
* Remove `device`
* Remove `entity`
* Fix tests
2025-03-24 17:16:29 +01:00
Maciej Bieniek
2785688f57
Add calibrate
button for Shelly BLU TRV ( #140578 )
...
* Initial commit
* Refactor
* Call async_add_entities() once
* Type
* Cleaning
* `supported` is not needed here
* Add error handling
* Add test
* Fix name
* Change class name
* Change method name
* Move BLU_TRV_TIMEOUT
* Fix BLU_TRV_TIMEOUT import
* Coverage
* Use test snapshots
* Support error translations
* Fix tests
* Introduce ShellyBaseButton class
* Rename press_method to _press_method
* Improve exception strings
2025-03-21 10:14:20 +01: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
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
Maciej Bieniek
8d6a711cac
Make unique_id
of the Shelly button entity immutable ( #95160 )
2023-06-27 19:10:12 +02:00
epenet
80ee196fd8
Add type hints to integration tests (part 19) ( #88178 )
2023-02-15 18:07:40 +01:00
J. Nick Koston
435fc23737
Add shelly ble scanner support ( #82007 )
2022-11-15 12:34:45 -06:00
Shay Levy
723b018b63
Refactor Shelly tests - do not access hass.data ( #79606 )
2022-10-05 11:36:06 +02:00
starkillerOG
4bdd8cb459
Shelly migrate to update entity ( #78305 )
...
* Add update entity
* fixes
* fixes
* change to CONFIG catogory
* return latest version if no update available
* fixes
* Remove firmware binary_sensors and buttons
* import Callable from collections
* remove ota_update tests
* Update homeassistant/components/shelly/update.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* simplify
* fix mypy
* Create test_update.py
* fix isort
* add progress support
* fix styling
* fix update_tests
* fix styling
* do not exclude shelly update test
* bring coverage to 100%
* snake case
* snake case
* change str(x) to cast(str, x)
* simplify tests
* further simplify tests
* Split MOCK_SHELLY_COAP and MOCK_SHELLY_RPC
* fix issort
* fix status test
* fix isort
* run python3 -m script.hassfest
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-09-28 20:21:30 +03:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Michael
83acfda757
Add reboot button to Shelly devices ( #60417 )
2021-11-29 19:49:49 +01:00
Michael
296b738740
Add button to trigger ota firmware update for Shelly devices ( #58757 )
...
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-11-26 14:19:39 +01:00