Commit Graph
33 Commits
Author SHA1 Message Date
Joost LekkerkerkerandGitHub 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 LekkerkerkerandGitHub 2175cd6039 Add tests for Roomba Options flow (#114666)
* Add tests for Roomba Options flow

* Fix
2024-04-02 21:49:53 +02:00
Joost LekkerkerkerandGitHub 21c7cc3250 Bump roombapy to 1.8.1 (#114478)
* Bump roombapy to 1.7.0

* Bump

* Bump

* Fix
2024-04-02 11:15:52 +02:00
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-26 00:02:16 +01:00
Marc MuellerandGitHub 7d6251ca08 Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
9348f99ce8 Bump roombapy to 1.6.12 (#110762)
* bump roombapy to 1.6.11

* Apply suggestions from code review

* "fix" tests (make them pydantic fiendly?)

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-02-22 10:39:53 +01:00
J. Nick KostonandGitHub 0ea524659c Fix formatting of mac addresses from dhcp discovery mocking in roomba (#110596)
dhcp returns addresses in lowercase without :
2024-02-14 23:24:34 +01:00
J. Nick KostonandGitHub 0eca433004 Update zeroconf discovery to use IPAddress objects to avoid conversions (#100567) 2023-09-19 18:58:46 +02:00
J. Nick KostonandGitHub ab0d35df92 Add zeroconf support to roomba (#93309) 2023-05-21 16:12:19 +02:00
epenetandGitHub 0a80ac19bc Add type hints to integration tests (part 18) (#88174) 2023-02-17 18:45:48 +01:00
epenetandGitHub ba85fdcd61 Add type hints to integration tests (q-s) (#87706) 2023-02-08 08:12:54 -08:00
Franck NijhofandGitHub 7cd68381f1 Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
epenetandGitHub 435eb97495 Use DhcpServiceInfo in roomba (#60056) 2021-11-21 07:54:39 -06:00
a4d9019ffc Refactor persistent notification to no longer route all data via a service (#57157)
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <[email protected]>
2021-10-07 12:58:00 +02:00
b942454312 Fix manual setup when roomba is on different subnet (#54639)
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: Franck Nijhof <[email protected]>
2021-08-21 20:01:41 -05:00
Ville SkyttäandGitHub 153d6e891e Use config_entries.SOURCE_* constants (#49631) 2021-04-25 11:27:40 +02:00
Jakub BartkowiakandGitHub 33d4d545a7 Fix charging error in Roomba integration (#49416) 2021-04-23 17:22:56 -10:00
J. Nick KostonandGitHub 252bcabbea Fix exception in roomba discovery when the device does not respond on the first try (#49360) 2021-04-18 09:48:02 +02:00
J. Nick KostonandGitHub 7a40d0f1c2 Disconnect roomba on stop event (#49235) 2021-04-15 11:24:43 +02:00
J. Nick KostonandGitHub e9f2062f1b Fix duplicates and unexpected failures during roomba discovery (#48492) 2021-03-30 17:54:36 +02:00
J. Nick KostonandGitHub 958c4764f7 Handle routers that convert hostnames to lowercase in dhcp (#48429)
Some routers will lowercase all the hostnames. Since we
already lowercase hostnames for matching purposes, we now
pass the lowercased hostname to the integration.

Currently only roomba cared about this, and has been adjusted.
2021-03-28 11:23:06 +02:00
a9ccba44ed Add support for Roomba 980 discovery (#47696)
Co-authored-by: J. Nick Koston <[email protected]>
2021-03-24 08:46:11 -10:00
tkdrobandGitHub f929aa222f Use core constants for roomba (#46441) 2021-02-12 16:09:36 +01:00
233f923cd7 Add support for discovering individual roombas (#45200)
* Add support for discovering individual roombas

* add missing translation string

* Update homeassistant/components/roomba/strings.json

Co-authored-by: Martin Hjelmare <[email protected]>

Co-authored-by: Martin Hjelmare <[email protected]>
2021-01-15 21:28:12 -10:00
J. Nick KostonandGitHub ac60b34d17 Roomba cleanups (#45097)
* Roomba cleanups

Remove async_step_init backwards compat

Move urls to description_placeholders.

Fix typos

* fix test

* fix fallback to manual when roomba is in the wrong state
2021-01-13 07:27:25 +01:00
J. Nick KostonandGitHub 74e7f7c879 Update roomba config flow to walk users through pairing (#45037)
* Update roomba config flow to walk users though pairing

* Remove YAML support

* adjust tests

* increase cover

* pylint

* pylint
2021-01-11 14:46:54 +01:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Jasper SlitsandGitHub f3033ec01d Add Roomba support for automatic emptying of bin (#43594) 2020-11-26 17:48:54 +01:00
Paulus SchoutsenandGitHub 1c36bf5e19 Fix block till done in create entry config flow tests (#42290) 2020-10-24 16:20:56 +02:00
Franck NijhofandGitHub 1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
Xiaonan ShenandGitHub de628602c2 Remove certificate configuration variable from roomba (#35162)
* Remove certificate option from roomba

* Fix roomba test

* Add back certificate with deprecated flag

* Remove invalidation_version
2020-05-04 08:28:32 -04:00
Paulus SchoutsenandGitHub ec47216388 Use built-in test helpers on 3.8 (#34901) 2020-04-30 13:29:50 -07:00
8c4a139aeb Add config_flow for Roomba (#33302)
* Add config_flow for roomba

* Get options to connect

* Fix options in config flow

* Fix syntax in config_flow

* Remove name (not necessary)

* Add bin sensor

* Add Battery sensor

* Add async_connect

* Fix typo

* Add Model and Software version

* Update Roombapy 1.5.0

* Add validate_input

* Add connect and disconnect functions

* Remove test config flow

* Add variables after loop

* Fix translate

* Fix typo

* Fix state of bin

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Remove invalid auth

* Add call function reported_state

* Add options reload

* Fix tracelog

* Set entry_id for config_entry

* Fix DOMAIN unsed-import

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Add unique_id for entry

* Fix device info

* Add config_flow for roomba

* Get options to connect

* Fix options in config flow

* Fix syntax in config_flow

* Remove name (not necessary)

* Add bin sensor

* Add Battery sensor

* Add async_connect

* Fix typo

* Add Model and Software version

* Update Roombapy 1.5.0

* Add validate_input

* Add connect and disconnect functions

* Remove test config flow

* Add variables after loop

* Fix translate

* Fix typo

* Fix state of bin

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Remove invalid auth

* Add call function reported_state

* Add options reload

* Fix tracelog

* Set entry_id for config_entry

* Fix DOMAIN unsed-import

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/config_flow.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Add unique_id for entry

* Fix device info

* syntax for mac (pyupgrade)

* Change single key to BLID

* Resolve dict conflict

* Update homeassistant/components/roomba/binary_sensor.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/sensor.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/.translations/en.json

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/strings.json

Co-Authored-By: J. Nick Koston <[email protected]>

* Add description

* Revert "Remove test config flow"

This reverts commit 26a89422e8.

* Add tests

* Remove check if user none

* Replace CONF_USERNAME to CONF_BLID (breaking change)

* Update test_config_flow.py

* Add code owners

* Remove CONF_USERNAME (unused)

* Add multiple vacuum

* Add multiple vacuum

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Fix syntax name

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Remove CONF_PREFIX (unused)

* Update homeassistant/components/roomba/sensor.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Add import UNIT_PERCENTAGE

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

* Update homeassistant/components/roomba/__init__.py

Co-Authored-By: J. Nick Koston <[email protected]>

Co-authored-by: J. Nick Koston <[email protected]>
2020-04-11 10:55:00 -05:00