Robert Svensson
ec8d23d0af
Fix places not changed to hub in Axis tests ( #112128 )
2024-03-03 20:45:06 -05:00
Robert Svensson
4eb24b2db7
Clean up setup and teardown of Axis integration ( #112120 )
2024-03-03 12:42:44 -05:00
Robert Svensson
ece5587e1f
Streamline naming in the Axis integration ( #112044 )
...
* Rename device.py to hub.py
* Rename AxisNetworkDevice to AxisHub
* Move hub.py into hub package
* Rename get_axis_device to get_axis_api
* Split out get_axis_api to its own module
* Rename device object to hub
* Rename device to api in config flow
* Convenience method to get hub
2024-03-02 11:32:51 -05:00
Robert Svensson
458391ee2b
Axis improve coverage binary tests ( #111758 )
...
* Parametrize binary sensor tests
* Add test coverage to the different *guard apps
* Add object analytics tests
2024-02-28 23:14:50 -05:00
Robert Svensson
c478b1416c
Adapt Axis integration to library refactoring ( #110898 )
...
* Adapt Axis integration to library refactoring
* Bump axis to v49
2024-02-28 14:36:32 +01:00
J. Nick Koston
8da07f1bf2
Fix formatting of mac addresses from dhcp discovery mocking in axis ( #110560 )
...
dhcp returns addresses in lowercase without :
2024-02-14 20:37:31 -05:00
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Franck Nijhof
04e0e2bd75
Update a* tests to use device & entity registry fixtures ( #103711 )
2023-11-09 20:46:20 +01:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
Joost Lekkerkerker
82e92cdf82
Use snapshot assertion for Axis diagnostics test ( #98902 )
2023-08-23 21:36:18 +02:00
Robert Svensson
1552319e94
Add Axis camera sources to diagnostics ( #97063 )
2023-07-23 17:56:58 +02:00
epenet
7b3a932cd9
Remove incorrect constant usage in test ( #91198 )
2023-04-11 10:00:17 +02:00
epenet
30884f6d17
Add missing mock in axis config flow tests ( #89365 )
2023-03-08 09:38:55 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
0cf5e9fb4a
Add type hints to integration tests (part 2) ( #87789 )
...
* Add type hints to integration tests (part 2)
* typo
* Improve analytics
* Improve automation
* Imrpove bluetooth
2023-02-10 16:05:26 +01:00
epenet
2545694d41
Add type hints to integration tests (a) ( #87684 )
...
* Add type hints to accuweather tests
* Adjust a** components
* Adjust aiohttp_client
* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
Robert Svensson
4181a9baf0
Improve Axis config flow tests ( #86644 )
...
* Improve Axis config flow tests
* Don't use prepare_config_entry
2023-01-26 14:29:06 +01:00
Robert Svensson
a56f6cb863
Assert Axis config entry state not hass.data ( #86648 )
2023-01-25 21:15:03 +01:00
Robert Svensson
332d3e0f19
Use fixtures to setup Axis integration in tests ( #86034 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-22 17:33:40 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Robert Svensson
e43802eb07
Use more _attrs_* in Axis entities ( #85555 )
...
* Use _attr_available
* Use _attr_is_on
* Use _attr_name
* Make some values private
* Update names of axis entity base classes
* Fix review comments
2023-01-18 17:27:13 +01:00
Robert Svensson
8117f4af3a
Use parametrize to modify Axis test fixtures ( #85884 )
2023-01-15 04:12:03 +01:00
Robert Svensson
768c3e163d
Create and use config_entry fixture for Axis integration tests ( #85865 )
2023-01-14 14:18:18 +02:00
Robert Svensson
be899b6ab6
Store Axis device with entry_id key rather than unique_id ( #85673 )
...
* Store Axis device with entry_id key rather than unique_id
* Fix review comments
2023-01-13 22:21:40 +01:00
Robert Svensson
7953c4a6d5
Clean up old config migration of Axis config ( #85671 )
...
* Revert Axis config flow version to 1
* Set up using hass.config_entries.async_setup
* Fix review comment
* Update homeassistant/components/axis/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-13 17:12:51 +01:00
Robert Svensson
1cdd535f21
Bump axis to v46 ( #85431 )
2023-01-09 12:43:40 +01:00
Robert Svensson
534bb74069
Bump axis to v45 ( #84992 )
2023-01-02 18:14:14 +01:00
Robert Svensson
c16db4c3e1
Make Axis utilise forward_entry_setups ( #75178 )
2022-07-28 11:41:03 +02:00
Robert Svensson
ef6fd78ede
Use FlowResultType in Axis config flow tests ( #74496 )
2022-07-06 09:54:26 +02:00
epenet
a29990a784
Use new CONF_MODEL core constant (1/3) ( #68829 )
...
* Use CONF_MODEL in axis
* Use CONF_MODEL in denonavr
* Use CONF_MODEL in flux_led
* Use CONF_MODEL in konnected
* Use CONF_MODEL in steamist
* Use CONF_MODEL in tellstick
* Use CONF_MODEL in tensorflow
* Use CONF_MODEL in twinkly
* Use CONF_MODEL in yeelight
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-29 11:11:58 +02:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
Robert Svensson
1b46575f29
Add diagnostics support to Axis integration ( #64637 )
...
* Add diagnostics support to Axis integration
* Remove system info
* Redact sensitive information
* Store whole config entry
* Redact username
* Apply suggestions from code review
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2022-01-23 22:52:08 +01:00
Robert Svensson
1551da33ac
Expose Axis device configuration url from discovered entry ( #64517 )
2022-01-20 09:47:02 +01:00
Dave T
16e152b797
Use DeviceClass Enums in axis tests ( #62096 )
2021-12-16 23:26:23 +01:00
epenet
8954609f6b
Use dataclass properties in axis discovery ( #60558 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 10:15:34 -10:00
epenet
2468724378
Use SsdpServiceInfo for ssdp tests (part 2) ( #60322 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 09:45:35 -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
2675c6d408
Use DhcpServiceInfo in axis ( #60092 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-21 15:39:37 -06: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
Robert Svensson
281adfe3c9
Add support for device configuration URL to Axis devices ( #58176 )
2021-10-22 11:09:50 +02:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ( #49865 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Marc Mueller
1a38d2089d
Bump python-typing-update to v0.3.3 ( #48992 )
...
* Bump python-typing-update to 0.3.3
* Changes after update
2021-04-10 15:21:11 +02:00
Robert Svensson
31ae121645
Add fixtures for Axis rtsp client and adapt tests to use them ( #47901 )
...
* Add a fixture for rtsp client and adapt tests to use it
* Better fixtures for RTSP events and signals
2021-04-09 10:56:53 +02:00
Erik Montnemery
78b21b1ad1
Update tests a-b to use async_get() instead of async_get_registry() ( #47651 )
2021-03-09 14:24:34 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Robert Svensson
94ecb792ec
Use async_update_entry rather than updating config_entry.data directly in Axis ( #46078 )
...
Don't step version in migrate_entry to support rollbacking
2021-02-06 13:17:52 +01:00