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
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
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
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
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01: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
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
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
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
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
b7bf1e9f3f
Make Shelly Wall Display thermostat implementation compatible with firmware 1.2.5 ( #104812 )
2023-11-30 17:26:07 +01:00
Maciej Bieniek
14387cf94b
Remove Shelly Wall Display switch entity only if the relay is used as the thermostat actuator ( #104506 )
2023-11-26 14:46:29 +01: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
Maciej Bieniek
adc56b6b67
Add support for Shelly Wall Display in thermostat mode ( #103937 )
2023-11-24 12:55:41 +01:00
Maciej Bieniek
dbe193aaa4
Add `release_url` property of Shelly update entities ( #103739 )
2023-11-15 13:36:20 +01:00
Shay Levy
439ca60cb6
Fix Shelly Gen2 event get input name method ( #100733 )
2023-09-23 12:45:41 +03:00
Maciej Bieniek
f6243a1f79
Add `event` platform for Shelly gen2 devices ( #99659 )
...
* Add event platform for gen2 devices
* Add tests
* Add removal condition
* Simplify RpcEventDescription; fix availability
* Improve names and docstrings
* Improve the event entity name
* Use async_on_remove()
* Improve tests coverage
* Improve tests coverage
* Prefix the entity name with the device name in the old way
* Black
* Use DeviceInfo object
2023-09-18 00:38:08 +02:00
Maciej Bieniek
e1f4a3fa9f
Add energy meter sensors for Shelly Pro EM ( #99747 )
...
* Add support for Pro EM
* Improve get_rpc_channel_name()
* Revert an unintended change
* Add tests
2023-09-07 06:59:04 +02:00
Maciej Bieniek
17050a3286
Add support for Shelly Gas Valve addon ( #98705 )
...
* Support Gas Valve
* Treat opening and closing as open
* Use set_state()
* Change entity icon and name
* Add valve state sensor
* Closing == closed
* Add translations for valve state entity
* Valve state -> Valve status
* Add tests; use control_result
* Fix mypy error
* Add missing "valve" to the Mock
* Improve docstrings
* Fix climate platform tests
* Increase test coverage
* Add mising return
2023-08-22 11:53:52 +03:00
Maciej Bieniek
f97f33fff7
Only create an issue if push updates fail 5 times in a row for Shelly gen1 devices ( #98747 )
2023-08-21 22:27:36 +02:00
Shay Levy
a713d7585f
Bump aioshelly to 6.0.0 ( #98719 )
2023-08-21 10:49:11 +03:00
Maciej Bieniek
31dfa5561a
Add external power sensor for Shelly Plus HT ( #96768 )
...
* Add external power sensor for Plus HT
* Tests
2023-07-17 22:07:24 +03:00
Maciej Bieniek
eb058a3d41
Add illuminance sensor for Shelly gen2 devices ( #93559 )
2023-05-25 23:10:44 +02:00
Maciej Bieniek
7119a0f811
Use `suggested_display_precision` instead of rounding in Shelly sensor platform ( #87084 )
2023-02-20 10:20:52 -06:00
Shay Levy
ae6bc96002
Shelly code quality ( #86733 )
2023-01-27 10:47:05 +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
e1923bc13b
Add Shelly support for Plus WallDimmer US ( #83385 )
2022-12-06 19:44:17 +02: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
Shay Levy
4a089b5c28
Add tests coverage for Shelly climate platform ( #82529 )
2022-11-22 09:04:55 -06:00
Shay Levy
91a44b697b
Add tests coverage for Shelly number platform ( #82480 )
2022-11-21 10:55:06 -06:00
Shay Levy
32f3eb722e
Add tests coverage for Shelly entity ( #82432 )
...
* Add tests coverage for Shelly entity
* Make it generator expression
2022-11-20 23:59:25 +02:00
Shay Levy
8bd7f59b93
Add tests for Shelly sensor platform ( #82385 )
2022-11-19 22:01:30 +02:00
Shay Levy
ea98f0e9e8
Add tests for Shelly binary_sensor platform ( #82367 )
...
* Add tests for Shelly binary_sensor platform
* Rename create to register for
2022-11-19 18:07:02 +02:00
J. Nick Koston
435fc23737
Add shelly ble scanner support ( #82007 )
2022-11-15 12:34:45 -06:00
Shay Levy
228d491216
Fix Shelly entry unload and add tests for init ( #80760 )
2022-10-22 09:00:35 +02:00
Shay Levy
8e9457d808
Add Shelly support for sleeping Gen2 devices ( #79889 )
2022-10-18 22:42:22 +03:00
Shay Levy
9019fcb5c5
Migrate Shelly to use kelvin for color temperature ( #79880 )
2022-10-08 22:24:19 +03: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
Shay Levy
2d4d18ab90
Add Shelly gen2 cover support ( #67705 )
...
* Add Shelly gen2 cover support
* Make status property
2022-03-08 11:58:08 +02:00
Michael
83acfda757
Add reboot button to Shelly devices ( #60417 )
2021-11-29 19:49:49 +01:00