1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-03 21:49:17 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
Robert Svensson
5eff4f9816
Unifi improve fixture typing ()
* Improve typing of UniFi fixtures

* Improve fixture typing, excluding image, sensor, switch

* Improve fixture typing in image tests

* Improve fixtures typing in sensor tests

* Improve fixture typing in switch tests

* Fix review comment
2024-07-30 19:33:25 +02:00
Robert Svensson
08d7beb803
Use snapshots in UniFi update tests () 2024-07-25 17:32:31 +02:00
Robert Svensson
325352e197
Fixture cleanup in UniFi tests ()
* Make sure all mock_device_registry are used with usefixtuers

* Make sure to use name with fixtures and rename functions to start with fixture_

* Streamline config_entry_setup

* Type all *_payload

* Mark @pytest.mark.usefixtures("mock_default_requests")

* Clean up unnecessary newlines after docstring
2024-06-09 16:07:36 -04:00
Robert Svensson
c9911e4dd4
Rework UniFi tests to not use runtime data () 2024-06-09 15:56:26 +02:00
Robert Svensson
c2e245f9d4
Use fixtures in UniFi update tests () 2024-06-04 21:00:50 +02:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] () 2024-03-08 14:44:56 +01:00
Robert Svensson
ab4750c2ea
Remove unnecessary access to UniFi hub object in tests ()
* Remove unnecessary access to UniFi hub object

* Split strings

* Skip + on concatenating f-strings

* Use single quotes inside double quotes
2024-03-05 08:23:17 +01:00
Robert Svensson
2f026ca963
Unifi rename controller to hub ()
* Rename controller.py to hub.py

* Rename UniFiController to UnifiHub

* Rename controller instances into hub

* Rename controller to hub in tests

* Rename aiounifi Controller references to api

* Update strings

* Rename test_controller test_hub

* Narrow scope of test_remove_sensors
2024-02-20 08:51:22 +01:00
Joseph Block
1271f16385
Add Unifi device state for additional diagnostics ()
* Add device state for additional diagnostics

* Add state test and fix existing tests

* Utilize IntEnum and dict for state lookup

* Update aiounifi to v68
2023-12-16 08:38:21 +01:00
Robert Svensson
01b5854968
Rework UniFi websocket ()
* Rework websocket management

* remove unnecessary fixture

* Remove controller from mock_unifi_websocket

* Mock api.login in reconnect method

* Remove unnecessary edits

* Minor clean up

* Bump aiounifi to v63

* Wait on task cancellation
2023-09-27 10:56:24 +02:00
Robert Svensson
9e42451934
UniFi refactor using site data ()
* Clean up

* Simplify admin verification

* Streamline using sites in config_flow

* Bump aiounifi
2023-08-18 22:44:59 +02:00
epenet
9a5f88f55f
Add type hints to integration tests (part 23) () 2023-02-17 16:40:46 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) () 2023-02-08 19:10:53 +01:00
Robert Svensson
92eaa539b6
Simplify mocking UniFi websocket ()
* Simplify mocking UniFi websocket

* Fix one more
2022-10-20 19:37:13 +02:00
Robert Svensson
d0ed4b1ff2
Replace constants with enums in UniFi ()
Replace constants with enums
Fix bad imports
2022-10-20 00:10:01 +03:00
Jelte Zeilstra
5e10716dd8
Do not access hass.data in unifi test ()
* Do not access hass.data in test

* Process review feedback
2022-07-23 12:42:43 +02:00
Jelte Zeilstra
514e826fed
Add install UniFi device update feature ()
* Add install UniFi device update feature

* Add tests for install UniFi device update feature

* Fix type error

* Process review feedback

* Process review feedback
2022-07-16 20:39:11 +02:00
Jelte Zeilstra
75058e63a4
Create Update entities for Ubiquiti network devices ()
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-05-13 09:17:41 +02:00