Maciej Bieniek
c85743822a
In Brother integration use SnmpEngine from SNMP integration ( #118554 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-05-31 07:52:43 -05: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
Maciej Bieniek
da42a8e1c6
Use SnmpEngine stored in hass.data by singleton in Brother integration ( #117043 )
2024-05-19 11:33:21 +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
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
epenet
c5a56dab42
Apply hass-relative-import to tests (a-c) ( #78728 )
2022-09-19 09:48:25 +02: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
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* 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
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Maciej Bieniek
3461f3a1ed
Tests improvements to the Brother integration ( #32982 )
...
* Add tests for states of the sensors
* Revert async_update method
* Tests improvement
* Fix icon name
* Tests improvement
* Simplify tests
* Test improvement
* Patch the library instead of the coordinator
* Suggested change
* Remove return_value
2020-03-20 10:21:43 +01:00
Maciej Bieniek
c1ceab09e5
Migrate Brother to use DataUpdateCoordinator ( #32800 )
...
* Use DataCoordinator to update Brother data
* Simplify error text
* Improve tests
* Rename DEFAULT_SCAN_INTERVAL to SCAN_INTERVAL
* Add entity_registry_enabled_default property
* Add quality_scale to manifest.json file
* Remove misleading coordinator.data.data
2020-03-17 22:21:56 -05:00