Commit graph

37 commits

Author SHA1 Message Date
Matt Zimmerman
370345ce2b
Map missing preset mapping for heat mode "ready" in smarttub () 2024-01-01 17:58:12 -10:00
Matt Zimmerman
fd3d615c0d
Handle smarttub sensor values being None ()
* [smarttub] handle sensor values being None

* empty commit to rerun CI

* lint

* use const in test

* reorder checks

* use None instead of STATE_UNKNOWN

* empty commit to rerun CI

* check for STATE_UNKNOWN in test

* empty commit to rerun CI
2023-11-06 04:11:50 +01:00
J. Nick Koston
9b27552238
Fix race in starting reauth flows () 2023-10-31 12:38:05 -05:00
Ville Skyttä
940942a74a
Import util.dt as dt_util in components/[p-s]* () 2023-05-30 00:09:42 +03:00
epenet
3a9adacdde
Add type hints to integration tests (part 20) () 2023-02-15 15:23:34 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) () 2023-02-08 08:12:54 -08:00
epenet
0d696b84b2
Cleanup root component imports in tests () 2022-09-21 06:57:41 -10:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum () 2022-07-07 19:57:36 +03:00
epenet
c44391f368
Use climate enums in smarttub () 2022-04-26 09:10:48 +02:00
Franck Nijhof
9e33a3014c
Automatically add entry title as name placeholder in reauth () 2022-01-18 14:18:16 -08:00
Matt Zimmerman
da1d6d3821
Add service to reset SmartTub reminders ()
* Add service to reset SmartTub reminders

* add test

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-06-27 20:59:11 +02:00
Matt Zimmerman
fad7e43c4f
Add state attribute to SmartTub reminders for days remaining () 2021-06-27 18:39:40 +02:00
Matt Zimmerman
ffb9ab21c1
Add binary sensor for smarttub errors () 2021-05-26 09:25:47 -07:00
Matt Zimmerman
aa18ad2abf
Add service to snooze SmartTub reminders ()
* Add service to snooze SmartTub reminders

* minimum is 10 days

* 0->10 in services.yaml as well

* Update homeassistant/components/smarttub/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/smarttub/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-25 18:37:00 +02:00
Matt Zimmerman
87438dd401
Add services to SmartTub for changing filtration settings ()
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-23 09:00:24 -05:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ()
* 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
Matt Zimmerman
e6d94845dd
SmartTub: use get_full_status() () 2021-04-22 18:55:58 -10:00
Matt Zimmerman
fec6ea3f76
SmartTub cleanup () 2021-04-22 18:54:55 -10:00
Matt Zimmerman
8c52dfa1c5
Implement reauth for smarttub ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-21 21:28:24 -10:00
Franck Nijhof
7264c95217
Clean up superfluous integration setup - part 6 () 2021-04-16 09:23:27 -07:00
Matt Zimmerman
5265aabf92
Clean up SmartTub reminders ()
* remove "date" state attribute

* remove unused constant
2021-03-24 08:39:23 +01:00
Matt Zimmerman
73c6728e98
Add binary_sensor entities for SmartTub reminders () 2021-03-16 17:38:09 +01:00
Matt Zimmerman
7840db0598
Restore switch.turn_on and switch.turn_off functionality for SmartTub pumps ()
Revert "Remove turn_on and turn_off from SmartTub pump switches ()"

This reverts commit bab66a5cb9.
2021-03-10 01:26:54 +01:00
Matt Zimmerman
947f6ea51e
Parameterize SmartTub tests ()
* Parameterize SmartTub tests

* parameterize light service calls

* remove stray print()

* add comment
2021-03-01 13:53:57 +01:00
Matt Zimmerman
277c3cb661
Cleanup SmartTub filtration cycles () 2021-02-28 13:53:57 -10:00
Matt Zimmerman
bab66a5cb9
Remove turn_on and turn_off from SmartTub pump switches () 2021-02-28 13:48:30 -10:00
Matt Zimmerman
81d011efc5
Add binary sensor to SmartTub for online status () 2021-02-22 04:10:00 -10:00
Matt Zimmerman
b2b476596b
Add UV sensor to SmartTub () 2021-02-21 20:25:01 -10:00
Matt Zimmerman
5cd022a683
Add light platform to SmartTub ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-21 20:09:21 -10:00
Matt Zimmerman
5d8390fd9b
Add support for SmartTub filtration cycles () 2021-02-21 19:36:50 -10:00
Matt Zimmerman
a8be5be376
Add switch platform and pump entity to SmartTub () 2021-02-21 18:48:27 -10:00
Matt Zimmerman
d32dbc4cdd
Add support for SmartTub heat modes () 2021-02-21 18:46:54 -10:00
Matt Zimmerman
12c4db076c
Add more sensors to SmartTub integration () 2021-02-21 17:40:23 -10:00
Matt Zimmerman
115fe26642
Add smarttub sensor platform and state sensor () 2021-02-20 12:25:02 -10:00
Matt Zimmerman
da51e23514
Address late smarttub review ()
* _config -> config

* remove unused string

* remove entity tests

* replace unit tests with integration tests using the core

* refactor polling to use asyncio.gather

* remove redundant component init

* remove gather in favor of simple loop

* use async_fire_time_changed instead of async_update_entity

* use hass.config_entries.async_setup instead of calling smarttub.async_setup_entry directly

* replace stray smarttub.async_setup_entry call

* async_unload_entry -> hass.config_entries.async_unload

* remove broken test
2021-02-19 01:18:02 +01:00
Matt Zimmerman
58499946ed
Add SmartTub integration ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-16 19:37:56 -10:00