Maciej Bieniek
cd928d5571
Support reconfigure flow in Brother integration ( #117298 )
...
* Add reconfigure flow
* Improve config flow
* Check if it is the same printer
* Improve description
* Add tests
* Improve strings
* Add missing reconfigure_successful string
* Improve test names and comments
* Format
* Mock unload entry
* Use add_suggested_values_to_schema()
* Do not abort when another device's IP has been used
* Remove unnecessary code
* Suggested changes
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-12 17:39:44 +02:00
Maciej Bieniek
826f6c6f7e
Refactor tests for Brother integration ( #117377 )
...
* Refactor tests - step 1
* Remove fixture
* Refactor test_init
* Refactor test_diagnostics
* Refactor test_config_flow
* Increase test coverage
* Cleaning
* Cleaning
* Check config entry state in test_async_setup_entry
* Simplify patching
* Use AsyncMock when patching
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-19 20:41:47 +02:00
Joost Lekkerkerker
9b41e3d124
Use is in enum comparison in config flow tests A-E ( #114669 )
2024-04-02 11:22:05 -10: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
Maciej Bieniek
6191b25563
Catch `TimeoutError` in `Brother` config flow ( #113593 )
...
* Catch TimeoutError in Brother config flow
* Update tests
* Remove unnecessary parentheses
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-16 16:01:48 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
epenet
7b3a932cd9
Remove incorrect constant usage in test ( #91198 )
2023-04-11 10:00:17 +02:00
epenet
adb4414440
Add missing mock in brother config flow tests ( #89354 )
2023-03-08 08:43:07 +01:00
Maciej Bieniek
64e39c9c81
Bump brother to 2.2.0 ( #88618 )
2023-02-22 20:28:58 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Maciej Bieniek
721fddc016
Bump `brother` backend library ( #78072 )
...
* Update integration for a new library
* Update tests
* Add unique_id migration
* Update integration and tests for lib 2.0.0
* Improve test coverage
* Improve typing in tests
2022-09-18 23:28:17 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Maciej Bieniek
c2b484e38b
Use IP address instead of hostname in Brother integration ( #73556 )
2022-06-16 11:43:36 +02:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
epenet
1d3fbc93a0
Update ZeroconfServiceInfo in tests (a-f) ( #60212 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 09:32:58 -06:00
epenet
b3ffc1e183
Adjust async_step_zeroconf signature for strict typing ( #59503 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 18:05:45 +01:00
epenet
ab1e14204f
Rename zeroconf service info ( #59467 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-10 15:26:47 +01:00
epenet
2b22d635d9
Use zeroconf HaServiceInfo in tests (A-D) ( #58836 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-02 12:27:31 -05:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Maciej Bieniek
85c6942f55
Bump `brother` library to version 1.1.0 ( #57892 )
2021-10-17 00:12:35 -10:00
J. Nick Koston
0dcb8ca270
Avoid probing brother devices that have an existing config entry ( #57829 )
2021-10-16 14:52:10 -07:00
Maciej Bieniek
39e8a92596
Remove unused code from Brother config flow ( #49889 )
2021-04-30 16:41:55 +02:00
Maciej Bieniek
3210c086ef
Improve type annotations for the Brother integration ( #49771 )
2021-04-29 16:59:31 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Maciej Bieniek
bba0bb1bad
Fix the name of the translation key for Brother integration ( #41054 )
2020-10-02 15:06:28 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Maciej Bieniek
4c27d6b9aa
Add zeroconf discovery support to Brother Printer integration ( #30959 )
...
* Add zeroconf discovery support
* Fix data for config_entry
* Add sting for zeroconf confirm dialog
* Add and fix tests
* Fix pylint errors
* Suggested changes
* Tests
* Remove unnecessary object
* Add error handling
* Remove unnecessary objects
* Suggested change
* Suggested change
* Use core interfaces for tests
2020-01-22 11:34:11 -08:00
Maciej Bieniek
21029b1d7b
Add Brother Printer integration ( #30359 )
...
* Init entities as unavailable when offline
* Initial commit
* Fix CODEOWNERS
* CODEOWNERS
* Run script.hassfest
* Add initial test
* Bump library
* More tests
* Tests
* Add new sensors and fix KeyError
* Fix unique_id and device_info
* Fix check for configured device
* More tests
* Bump library version
* Add uptime sensor
* Use config entry unique ID
* Run python3 -m script.gen_requirements_all
* Fix pylint error
* Remove pysnmp dependency
* Raise ConfigEntryNotReady when device offline at HA start
* Remove period from logging message
* Generator simplification
* Change raise_on_progress
* Rename data to printer
* Move update state to async_update
* Remove unused _unit_of_measurement
* Remove update of device_info
* Suggested change for tests
* Remove unnecessary argument
* Suggested change
2020-01-06 11:06:16 -06:00