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
Robert Svensson
b69d9860b6
Improve Axis tests following late review in SSDP PR ( #45489 )
2021-01-24 14:14:49 +01:00
Robert Svensson
1e7e5220a3
Add SSDP discovery support to Axis integration ( #45474 )
...
* Add SSDP discovery support to Axis integration
* Remove unnecessary f-string
* Remove the last of the f-string...
2021-01-23 23:51:49 +01:00
Robert Svensson
03fb73c0ae
Option to select what video source Axis camera should use ( #45268 )
...
* Fully working proposal of config option to select what video source camera entity should use
* Bump dependency to v43
Reflect dependency changes in how image sources is now a dict
* Fix bdracos comment
2021-01-23 00:15:58 +01:00
Robert Svensson
b601e7e497
Introduce reauthentication flow to Axis integration ( #45307 )
2021-01-21 12:56:04 +01:00
Robert Svensson
8e0addd216
Fix error with Axis light events without representation in light control ( #45277 )
2021-01-18 15:00:27 +01:00
Robert Svensson
3cc45697cb
Prettier Zeroconf discovery name for Axis devices ( #45216 )
...
* Change zeroconf name to be based of prettier name rather than hostname to help user understand what device is discovered
Have a full zeroconf discovery message in tests
Clean up unusued globals
* Use non-formatted serial number for config entry title as well
2021-01-16 18:59:57 +01:00
Robert Svensson
2044b33eb6
Add DHCP discovery support to Axis integration ( #45167 )
2021-01-16 11:03:56 +01:00
Robert Svensson
598a0d19b1
Normalise unique ID in Axis integration ( #45203 )
...
* Move adding unique id to config entry from setup_entry to migrate_entry
* Normalise unique ID
* MQTT subscribe should still use the serial number in the way the device itself expects
2021-01-16 01:01:14 +01:00
Robert Svensson
6325bc8bfe
Follow Axis library changes and improve tests ( #44126 )
2021-01-13 14:03:54 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Robert Svensson
20c3fdfe14
Fix ignored Axis config entries doesn't break set up of new entries ( #44062 )
2020-12-09 17:48:16 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00