Commit graph

25 commits

Author SHA1 Message Date
starkillerOG
0093276e93
Reolink add 100% coverage of binary_sensor platfrom ()
* Implement 100% coverage of binary_sensor

* fix styling

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* use get().state instead of is_state

* Remove unneeded "is True"

* Remove unneeded "is True"

* reset the mock and use assert_not_called

* use freezer

* fix styling

* fix styling

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-16 12:46:51 +02:00
starkillerOG
2343f5e40f
Reolink Chime online status and ability to remove ()
* Add chime available

* allow removing a Reolink chime

* Allow removal if doorbell itself removed

* fix tests

* Add tests

* fix styling
2024-08-08 19:28:46 +02:00
starkillerOG
32cd54b1e3
Fix flaky Reolink tests () 2024-07-23 08:35:02 -05:00
Marc Mueller
f11b316dac
Import Generator from collections.abc (4) () 2024-07-01 11:54:42 +02:00
starkillerOG
1b88448914
Do not wait for Reolink firmware check () 2024-06-26 09:34:45 +02:00
starkillerOG
8b4a5042bb
Use UID instead of MAC or channel for unique_ID in Reolink () 2024-06-21 20:27:30 +02:00
starkillerOG
3a672642ea
Reolink extend diagnostic data ()
* Add diagnostic info

* fix

* change order

* update tests
2024-06-16 14:02:10 +02:00
starkillerOG
b8851f2f3c
Cleanup Reolink firmware update entity () 2024-06-13 21:27:30 +02:00
Marc Mueller
837ee7c4fb
Import Generator from typing_extensions (4) () 2024-06-06 17:41:37 +02:00
starkillerOG
8723441227
Add Reolink serial number to device info of IPC camera ()
* Add UID to dev info

* Add camera_uid to test
2024-06-04 21:37:40 -04:00
epenet
c6e0e93680
Cleanup mock_get_source_ip from tests () 2024-05-30 09:37:01 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ()
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
7d6251ca08
Add empty line after module docstring [tests q-s] () 2024-03-08 14:47:22 +01:00
J. Nick Koston
4627e8b1fc
Fix formatting of mac addresses from dhcp discovery mocking in reolink ()
dhcp returns addresses in lowercase without :
2024-02-14 21:39:30 +01:00
Joost Lekkerkerker
a82410d5e9
Deduplicate constants E-Z () 2023-12-13 17:05:37 +01:00
starkillerOG
9fa163c107
Reolink cleanup when CAM disconnected from NVR ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-11-30 01:50:37 +01:00
starkillerOG
6b138a276a
Add diagnostics platform to Reolink () 2023-11-23 12:55:21 +01:00
starkillerOG
a3c0f36592
Add Reolink serial number ()
* Add Reolink serial number

* fix tests
2023-11-22 22:54:48 +01:00
starkillerOG
aea15ee20c
Reolink add media browser for playback of recordings () 2023-11-21 23:43:56 +01:00
starkillerOG
9f6eef7cca
Fix Reolink DHCP IP update () 2023-11-10 09:27:33 +01:00
starkillerOG
92cf6ed2a0
Reolink 100% test coverage () 2023-08-15 09:50:17 -05:00
starkillerOG
ee7f44b3da
Bump reolink-aio to 0.7.1 () 2023-06-18 13:13:21 +02:00
starkillerOG
b47ac524ea
Use async_timeout instead of asyncio.wait_for ()
* Use async_timeout instead of asyncio.wait_for

* fix imports

* fix imports

* break out Event.wait patch

* Update tests/components/reolink/conftest.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Simplify

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-04-01 17:47:31 +02:00
starkillerOG
e9925f6062
Check webhook url is reachable in Reolink ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 22:46:59 +02:00
starkillerOG
2d3c5cf8ee
Reolink test init 100% ()
* Split out reolink tests

* Bring __init__ coverage to 100%

* Improve docstrings

* Use patching and autospec=True for ReolinkHost

* Use fixture

* fix styling

* Parametrize tests

* Update tests/components/reolink/conftest.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update test_config_flow.py

* convert to fixture

* review comments

* Update tests/components/reolink/conftest.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/reolink/conftest.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/reolink/conftest.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* fix tests

* fix imports

* Update test_init.py

* Check if host is logout on reload

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-07 20:29:38 +01:00