Commit Graph

7 Commits (f11b316dac5215d7257538b1f30ce4be7a6b4c0a)

Author SHA1 Message Date
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
Marc Mueller 279483ddb0
Import Generator from typing_extensions (2) (#118989) 2024-06-06 17:24:22 +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
Marc Mueller 38adfbf1a3
Add empty line after module docstring [tests a-e] (#112708) 2024-03-08 08:50:25 -05:00
Maciej Bieniek 77283704a5
Bump `brother` library, use `pysnmp-lextudio` with SNMP integration (#105591) 2023-12-12 11:36:11 -10:00
Marc Mueller ba91aaa28d
Add support for Python 3.12 (#101651) 2023-10-10 21:34:49 +02:00
epenet adb4414440
Add missing mock in brother config flow tests (#89354) 2023-03-08 08:43:07 +01:00