Commit Graph
25 Commits
Author SHA1 Message Date
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 <[email protected]>

* Update tests/components/shelly/test_switch.py

Co-authored-by: Shay Levy <[email protected]>

* Update tests/components/shelly/test_switch.py

Co-authored-by: Shay Levy <[email protected]>

* Update tests/components/shelly/test_switch.py

Co-authored-by: Shay Levy <[email protected]>

* rename switch

* Update tests/components/shelly/test_switch.py

Co-authored-by: Shay Levy <[email protected]>

* Update tests/components/shelly/test_switch.py

Co-authored-by: Shay Levy <[email protected]>

* Update tests/components/shelly/test_switch.py

Co-authored-by: Shay Levy <[email protected]>

* fix ruff

---------

Co-authored-by: Shay Levy <[email protected]>
2024-05-16 12:49:49 +02:00
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 <[email protected]>
2024-04-25 21:06:52 +02:00
epenetandGitHub 9204ccfa17 Use is in ConfigEntryState enum comparison in tests (N-Z) (#114926) 2024-04-05 17:37:00 +02:00
Marc MuellerandGitHub 7d6251ca08 Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
Simone ChemelliandGitHub 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
b60f931e6d Improve tests for Shelly WallDisplay (#110435)
Co-authored-by: Maciej Bieniek <[email protected]>
2024-02-12 16:51:34 -06:00
8de038527f Improve type annotation in Shelly tests (#110361)
Co-authored-by: Maciej Bieniek <[email protected]>
2024-02-12 10:23:55 -06:00
326da81656 Add icon translations to Shelly (#110183)
Co-authored-by: Maciej Bieniek <[email protected]>
2024-02-11 14:07:10 -06:00
d0384480f5 Test unique IDs for Shelly entities (#109879)
Co-authored-by: Maciej Bieniek <[email protected]>
2024-02-07 10:18:00 -06:00
J. Nick KostonandGitHub 8d4f32645d Add tests for shelly switch unique ids (#109617) 2024-02-04 11:23:33 -06:00
Maciej BieniekandGitHub 3eef1a3f6a Add valve platform for Shelly Gas Valve (#106087)
* Add valve platform

* Update BLOCK_PLATFORMS

* Add tests

* Use _attr_is_closed

* Fix mypy errors

* Make the valve switch to disabled by default

* Add deprecation issues

* Remove LOGGER

* Clean

* Add deprecation comments

* Suggested changes

* Set True for is_fixable

* Show valve entity and services in repair issue
2023-12-26 07:56:21 +01:00
Maciej BieniekandGitHub b7bf1e9f3f Make Shelly Wall Display thermostat implementation compatible with firmware 1.2.5 (#104812) 2023-11-30 17:26:07 +01:00
Maciej BieniekandGitHub 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 BieniekandGitHub adc56b6b67 Add support for Shelly Wall Display in thermostat mode (#103937) 2023-11-24 12:55:41 +01:00
Shay LevyandGitHub b0f3b7bb76 Revert "Change naming of Shelly entities to correspond with HA guidelines" (#99059) 2023-08-28 10:42:24 +02:00
Maciej BieniekandGitHub 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 BieniekandGitHub c526d23686 Change naming of Shelly entities to correspond with HA guidelines (#97533)
* Do not use the device name to create the entity name

* Remove unnecessary return

* Fix mypy complains

* Gen1

* Uncapitalize description.name if channel name is used

* Fix for climate and button

* switch_3 -> switch 3

* Add _attr_has_entity_name to ShellyRestAttributeEntity

* Capitalize channel name
2023-08-19 11:13:22 +02:00
J. Nick KostonandGitHub 3a06659120 Speed up single entity/response service calls (#96729)
* Significantly speed up single entity/response service calls

Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather

* Significantly speed up single entity/response service calls

Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather

* revert

* cannot be inside pytest.raises

* one more

* Update homeassistant/helpers/service.py
2023-07-17 09:33:13 +02:00
epenetandGitHub 80ee196fd8 Add type hints to integration tests (part 19) (#88178) 2023-02-15 18:07:40 +01:00
Shay LevyandGitHub 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 LevyandGitHub 9019fcb5c5 Migrate Shelly to use kelvin for color temperature (#79880) 2022-10-08 22:24:19 +03:00
Shay LevyandGitHub 723b018b63 Refactor Shelly tests - do not access hass.data (#79606) 2022-10-05 11:36:06 +02:00
Shay LevyandGitHub eee0c5372c Use import instead of hass in Shelly tests (#67909) 2022-03-09 19:29:20 +01:00
Shay LevyandGitHub e9eb76c7db Add switch support for RPC device (#56153)
* Add switch support for RPC device

* Apply review comments

* Apply review comments
2021-09-13 09:31:35 +03:00
Shay LevyandGitHub e3f38942cc Add 100% tests coverage for Shelly cover and switch platforms (#45001) 2021-01-11 16:45:06 +01:00