Joost Lekkerkerker
f3ba713289
Use FlowResultType enum in config flow tests N-Z ( #114682 )
...
Use FlowResultType enum in config flow tests
2024-04-03 09:53:20 +02:00
Joost Lekkerkerker
2ef0521d3d
Use is in enum comparison in config flow tests U-Z ( #114677 )
...
* Use right enum expression U-Z
* Fix
2024-04-02 23:09:56 +02:00
mkmer
078535e1d6
Add diagnostic platform to Whirlpool ( #114578 )
...
* Add diagnostic platform and tests
* lowercase variable
* Correc doc string
2024-04-02 09:41:40 +02: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
Marc Mueller
efc54971d3
Update empty line formatting after module docstring ( #114040 )
2024-03-23 00:27:57 +01:00
Jessica Smith
02c1088596
Upgrade whirlpool integration to add shared appliances and allow brand selection ( #111687 )
...
* update to 1.18.5 and add Brand to config, required for getting shared appliances
* update version to 0.18.6
* start fixing tests
* fix typo
* check for falsy values instead of explicit None
* move CONF_BRAND from global constants to whirlpool constants
* add test for no brand, fix __init__ import
* add brand to string.json
* add brand to re-auth
* add title/description, add brand info to description
* add reauth strings
* pass already initialized data dict
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* remove trailing comma
* Update strings again
* fix reauth tests to add brand
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-03-20 02:02:45 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Marc Mueller
8b0c9d3d18
Use builtin TimeoutError [t-z] ( #109683 )
2024-02-05 12:20:36 +01:00
G Johansson
bc720b48b4
Add TURN_OFF and TURN_ON to ClimateEntityFeature ( #101673 )
...
* Add ClimateEntityFeature.TURN_OFF
* Fixes
* Fixes
* wording
* Change to services
* Fixing
* Fixing
* Last bits
* Review comments
* Add hvac_modes checks
* Fixes
* Add tests
* Review comments
* Update snapshots
* balboa
* coolmaster
* ecobee
* mqtt
* nest
* plugwise
* smarttub
* whirlpool
* zwave_js
* fix test climate
* test climate
* zwave
* nexia
* nuheat
* venstar
* tado
* smartthings
* self.hvac_modes not None
* more tests
* homekit_controller
* homekit controller snapshot
2024-01-30 15:07:47 +01:00
J. Nick Koston
c399cab427
Small speed up to checking core state ( #107845 )
2024-01-18 08:41:32 -10:00
G Johansson
83f4d3af5c
Implement mode validation in Climate entity component ( #105745 )
...
* Implement mode validation in Climate entity component
* Fix some tests
* more tests
* Fix translations
* fix deconz tests
* Fix switcher_kis tests
* not None
* Fix homematicip_cloud test
* Always validate
* Fix shelly
* reverse logic in validation
* modes_str
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2023-12-27 14:51:39 +01:00
Ville Skyttä
2399cd283a
Python 3.10 support cleanups ( #98640 )
2023-08-21 19:14:07 +02:00
Jan Bouwhuis
3969de6c76
Freeze time for whirlpool test to avoid fail ( #97935 )
2023-08-06 12:37:06 -10:00
mkmer
c6f21b47a8
Whrilpool add periodic update ( #97222 )
2023-07-25 22:23:31 +02:00
mkmer
198608906c
Address late review for whirlpool ( #93874 )
...
Address late review
2023-06-01 00:21:13 +02:00
mkmer
bfec3d68dd
Calculate _attr_native_value when no restore state and appliance is running in Whirlpool ( #88559 )
...
* Initialize _attr_native_value when running
* Fix return type on update_sensor_state()
move init at startup if _attr_native_value is None
* allow update _attr_native_value when running and none
2023-05-30 21:48:39 -04:00
epenet
9762b684c2
Adjust entity registry access in tests (3) ( #88964 )
2023-03-01 16:04:40 +01:00
epenet
5b80b1f55a
Add type hints to integration tests (part 25) ( #88308 )
2023-02-17 16:52:28 +01:00
mkmer
2af4d2152b
Honeywell disable detergent level by default ( #88040 )
...
* Disable fill by default
* Fix tests
* use TANK_FILL.get
* Remove None from attribute get
add reload to sensor test
* Typing
fix iteration error
2023-02-15 16:01:20 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Luke
f608e150fd
Fix incorrect mock in whirlpool ( #86331 )
...
* Added async according to error logs
* changed Asyncmock to magicmock get_aircon_mock
* changed attr_callback to MagicMock for sensor_mock
2023-01-21 20:18:43 +01:00
mkmer
1a0bce715a
Address invalid keys in translation for whirlpool ( #85849 )
2023-01-15 17:09:14 +01:00
mkmer
86ab5f76e0
Whirlpool general code cleanup ( #85387 )
2023-01-09 16:16:05 +01:00
mkmer
45eb1efc6f
Limit Whirlpool timestamp changes to +/- 60 seconds ( #85368 )
...
* Limit timestamp changes to +/- 60 seconds
* Add timestamp callback tests
2023-01-08 18:57:46 +01:00
mkmer
d75087ede5
Add Whirlpool washer and dryer to Whirlpool integration ( #85066 )
...
* redo Add sensor
* move back to ClientError
simplify washer_state
* Cleanup Sensor definitions
* Seperated EndTimeSensor
* Clean up WasherDryerTimeClass
* Start with Timestamp = None
* Clean up class description
* One more ClientError
* change to restore sensor
* Don't update when no state change
* Seperate washer tests
Add restore_state test
* Remove unused loop in washer sensor test
* No loops in sensor tests
* Remove unnecessary SensorTestInstance
2023-01-06 12:41:46 -08:00
mkmer
b65d4a9efd
Bump whirlpool-sixth-sense to 0.18.0 ( #84945 )
...
* bump whirlpool_sixth_sense to 18.0
add callback method initiated in 18.0
* add disconnect to mock
2023-01-01 20:08:54 +01:00
Abílio Costa
0e8164c07a
Add support for US in the Whirlpool integration ( #77237 )
...
* Support US region in the Whirlpool integration
* Force maytag brand for US region
* Add missing util.py file
* Fix import after merge
* run black
* Missing region key in config flow test
* Fixed Generic config entry
* fixed typos in dict
* Remove redundant list const
Co-authored-by: mkmer <mike.j.kasper@gmail.com >
2022-12-30 09:13:47 +01:00
mkmer
ae07e2a9a8
Add reauth config flow to Whirlpool ( #82532 )
...
* Add ReauthFlow
* Update homeassistant/components/whirlpool/config_flow.py
Darn it - thought I caught all of these.
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
* Update homeassistant/components/whirlpool/config_flow.py
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
* Update homeassistant/components/whirlpool/config_flow.py
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
* Update homeassistant/components/whirlpool/config_flow.py
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
* Update homeassistant/components/whirlpool/config_flow.py
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
* Update homeassistant/components/whirlpool/config_flow.py
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
2022-11-23 19:40:33 -08:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
epenet
e9f55f4e54
Apply hass-relative-import to tests (s-z) ( #78733 )
2022-09-19 09:51:31 +02:00
Abílio Costa
b1d249c391
Update Whirlpool integration for 0.17.0 library ( #76780 )
...
* Update Whirlpool integration for 0.17.0 library
* Use dataclass for integration shared data
2022-08-23 17:25:58 +02:00
epenet
2dbd2575d8
Use climate enums in whirlpool ( #70752 )
2022-04-25 21:27:28 -10:00
Abílio Costa
c97acf8713
Add support for multiple Whirlpool airconditioners ( #57588 )
2021-10-13 15:45:02 +02:00
Abílio Costa
49d97e13de
Improve Whirlpool component code quality ( #57357 )
...
* Improve Whirlpool component code
This implements a few suggestions given in
https://github.com/home-assistant/core/pull/48346#pullrequestreview-773552670
* Add return typing
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Add reason assertion to config_flow test
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-10-10 08:49:02 +02:00
Abílio Costa
c869b78ac1
Add Whirlpool integration ( #48346 )
...
* Add Whirlpool integration
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
* Apply suggestions from code review
* Fix lint
* Fix lint and tests
* Apply suggestions from code review
Co-authored-by: J. Nick Koston <nick@koston.org >
* Use dict lookups
* Lint
* Apply code changes from PR review
* Do real integration setup in tests
* Apply suggestions from review & fix test
* Replace get with array operator
* Add suggestions from code review
* Rename test var
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-09-13 10:02:34 -10:00