Commit Graph

27 Commits (d6a7127b845e420280971082cbdb655d64ed1c76)

Author SHA1 Message Date
Allen Porter 12129e9d21
Update service call return values and error handling (#94657)
* Update return signature of service calls

* Add timeout error handling in websocket api for service calls

* Update recorder tests to remove assertion on service call

* Remove timeout behavior and update callers that depend on it today

* Fix tests

* Add missing else

* await coro directly

* Fix more tests

* Update the intent task to use wait instead of timeout

* Remove script service call limits and limit constants

* Update tests that depend on service call limits

* Use wait instead of wait_for and add test

* Update homeassistant/helpers/intent.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-16 07:01:40 -07:00
epenet 8c519e1abb
Use SnapshotAssertion in gree climate tests (#90339) 2023-03-27 10:01:39 +02:00
epenet a036e31495
Use SnapshotAssertion in gree switch tests (#90222) 2023-03-26 19:51:48 +02:00
epenet 69a46d4002
Adjust pylint plugin for components fixtures (#90217)
* Adjust pylint plugin for components fixtures

* Adjust components

* Use MagicMock

* Adjust

* Use None
2023-03-26 15:21:19 +02:00
solazs b151923619
Add health mode to gree integration (#89764)
Add health mode to gree integration.
2023-03-23 08:56:47 +01:00
epenet adfd263635
Add missing mock in gree config flow tests (#89450) 2023-03-09 18:12:22 +01:00
Franck Nijhof ed79265843
Enable Ruff PT006 (#88165)
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet 89e4ee5320
Add type hints to integration tests (part 8) (#87982) 2023-02-13 11:13:48 +01:00
epenet 7a4d15a657
Add type hints to integration tests (f-g) (#87700) 2023-02-08 13:33:52 +01:00
Michael e5f67c9119
Replace the usage of unit constants by enumerations in Tests [f-g] (#85933) 2023-01-15 14:46:45 +01:00
epenet 0d696b84b2
Cleanup root component imports in tests (#78893) 2022-09-21 06:57:41 -10:00
Jc2k 1aa0e64354
Update gree to use the network component to set discovery interfaces (#75812) 2022-08-06 21:45:44 +01:00
Franck Nijhof 7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
epenet 23c5bd9779
Use climate enums in gree (#70655)
* Use climate enums in gree

* Adjust tests
2022-04-25 10:58:39 +02:00
epenet 20c1a155b6
Use EntityFeature enum in components (g**) (#69394) 2022-04-06 10:46:44 +02:00
Clifford Roche d6c27809dc
Gree update device ips when changed (#57876) 2021-12-03 11:18:53 -08:00
Robert Hillis ee07e9b379
Fix unpatched timeout in gree config flow tests (#59449) 2021-11-14 16:57:50 +01:00
Clifford Roche 327208c943
Bugfix current temperature in gree climate (#53149)
* Bugfix current temperature gree climate

* Retry build

* Update from the review
2021-07-19 17:07:15 +02:00
Clifford Roche b63e38f538
Add more Gree switches (#49629)
* Support additional switch for gree devices

* Undo some changes not related to review

* Retry build

* Back to Gree 0.11.7
2021-07-18 08:24:09 +02:00
Clifford Roche bc30920824
Correctly support use of Farenheit in Gree Climate component (#50260) 2021-06-08 00:21:03 +02:00
Ville Skyttä 19d25cd901
Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Clifford Roche 4ce6d00a22
Improve the discovery process for Gree (#45449)
* Add support for async device discovery

* FIx missing dispatcher cleanup breaking integration reload

* Update homeassistant/components/gree/climate.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/gree/switch.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/gree/bridge.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Working on feedback

* Improving load/unload tests

* Update homeassistant/components/gree/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Working on more feedback

* Add tests covering async discovery scenarios

* Remove unnecessary shutdown

* Update homeassistant/components/gree/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Code refactor from reviews

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-04-13 11:54:03 +02:00
Franck Nijhof 65cf2fcb6f
Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Clifford Roche f0e96f739b
Add turn_on and turn_off to gree climate component (#43207) 2021-01-01 13:58:38 +01:00
Clifford Roche ee97023053
Add support for Gree device light panels (#42979) 2020-12-28 22:32:04 +01:00
Clifford Roche eb9e9e67f0
Update greeclimate to 0.10.3 (#43248)
* Update greeclimate to 0.10.3

* Device search needs to be mocked in tests
2020-11-15 11:06:51 -06:00
Clifford Roche 839b9f226e
Add gree climate integration (#37498)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-14 15:15:56 +02:00