tdfountain
51a881f3b5
Add ambient temperature and humidity status sensors to NUT ( #124181 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-02-24 14:09:43 +00:00
epenet
fe010289b4
Use new ServiceInfo location in component tests (part 2) ( #136062 )
2025-01-20 13:13:45 +01:00
tdfountain
9c8d8fef16
Suggest area for NUT based on device location ( #129770 )
2024-11-04 18:06:45 +01:00
tdfountain
a05a34239d
Show NUT device serial number if provided in Device Info ( #124168 )
2024-11-03 17:27:27 -06:00
Erik Montnemery
d82bff1bc2
Index config entry discovery_keys by discovery domain ( #126563 )
...
* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 21:48:11 +02:00
Erik Montnemery
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 16:49:21 +02:00
epenet
ead0e797c1
Use registry fixtures in tests (m-n) ( #118291 )
2024-05-28 13:40:45 +02:00
Michael
90a3c2e357
Store runtime data inside the config entry in NUT ( #116771 )
...
* store runtime data inside the config entry
* remove unsued constants
* add test for InvalidDeviceAutomationConfig exception
* assert entry
* add more specific type hint
2024-05-04 23:08:01 +02:00
Sid
3efee10b95
Enable Ruff RUF013 ( #115333 )
2024-04-10 08:55:59 +02:00
Joost Lekkerkerker
5d500cb74b
Use is in enum comparison in config flow tests K-O ( #114672 )
2024-04-02 11:21:42 -10: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
J. Nick Koston
c3f4aca4e3
Add reauth support to NUT ( #114131 )
2024-03-25 07:59:46 -10:00
J. Nick Koston
4ac439ef88
Migrate nut to use aionut ( #114078 )
2024-03-23 12:02:02 -10:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
Jan-Philipp Benecke
0a57968fdc
Update nut sensor tests to use parametrize ( #103707 )
...
* Update nut sensor tests to use parametrize
* Add missing model
* Check on unique_id instead of config_entry_id
* Separate tests
2023-11-09 19:01:07 +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
ollo69
ce3c23cb3a
Add Nut commands to diagnostics data ( #96285 )
...
* Add Nut commands to diagnostics data
* Add test for diagnostics
2023-07-12 10:56:08 +02:00
Erik Montnemery
eba04824a4
Replace assert_lists_same with pytest_unordered in integrations n-s ( #94902 )
2023-06-20 20:23:14 +02:00
Pablo Estevez
780d0a484d
Add NUT device actions ( #80986 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-04-23 14:09:36 -05:00
Michael
1cce55d176
Add entity name translations to NUT ( #90709 )
2023-04-03 18:18:23 +02:00
epenet
3abf7ea18a
Add type hints to integration tests (m-p) ( #87705 )
2023-02-08 07:48:54 -08:00
zebardy
af107d7853
Add support for additional fields to nut ( #83265 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-22 19:24:30 -10:00
ollo69
75886d7213
Strip whitespace from Nut "zero" serialno ( #80141 )
2022-10-12 10:04:48 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
epenet
053c4428a9
Prettify json (component test fixtures) ( #68892 )
2022-03-30 11:37:17 +02:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
epenet
77dfeb062f
Update ZeroconfServiceInfo in tests (n-t) ( #60219 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 10:35:44 -06:00
epenet
b9cbfbae58
Use ZeroconfServiceInfo in nut ( #60047 )
2021-11-21 15:49:03 -06:00
ollo69
21f92f6286
Add Nut device explicitly to the device registry ( #59525 )
...
* Add Nut device explicitly to the device registry
* Restore resources in data and remove unused string
2021-11-12 11:10:40 +01:00
ollo69
6cba03aa4a
Remove resources selection from Nut config flow ( #59450 )
...
* Remove resources selection from Nut config flow
* Code clean-up
* Requested changes
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-10 13:49:05 +01:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
ollo69
b01170d917
Add Nut missing tests for config flow ( #57964 )
2021-10-18 07:17:10 -10:00
ollo69
fe0291012c
Use attr_device_info and add init tests for nut ( #57725 )
2021-10-17 07:43:15 -10:00
ollo69
827501659c
Nut: Use coordinator data, code cleanup and add test coverage ( #57643 )
2021-10-13 16:05:06 -10:00
ollo69
b54fc0229d
Use entity_registry_enabled_default for Nut sensors ( #56854 )
2021-10-13 11:33:03 -10:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Michael
b11db0b1d7
Remove unnecessary extra attribute from NUT sensors ( #56078 )
2021-09-10 19:17:46 -07:00
Franck Nijhof
af80ca6795
Clean up superfluous integration setup - part 5 ( #49296 )
2021-04-16 09:22:56 -07:00
Erik Montnemery
84226da404
Update tests i-o to use async_get() instead of async_get_registry() ( #47653 )
2021-03-09 14:32:08 +01:00
J. Nick Koston
c621c0fa5d
Remove YAML support from nut ( #45276 )
2021-01-18 15:16:42 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
1c36bf5e19
Fix block till done in create entry config flow tests ( #42290 )
2020-10-24 16:20:56 +02:00
springstan
7de1fe7416
Use percentage constant in more integrations ( #40165 )
2020-09-19 10:30:22 -05:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
1b593e3169
Prevent nut config flow error when checking ignored entries ( #38372 )
2020-07-29 23:20:19 +02:00
Franck Nijhof
683d960fa5
Add discovery to NUT integration ( #36827 )
...
* Add discovery to NUT integration
* implement async_step_zeroconf
* Update test to make sure unique id not set
* Remove host/port import when coming from discovery, add title placeholders
* fix mis-paste
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-06-19 17:33:01 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
J. Nick Koston
abae48c287
Use config entry id for unique id if serial number is missing ( #34154 )
2020-04-16 14:59:30 -07:00
J. Nick Koston
188f3e35fd
Add tests for additional nut ups models ( #34240 )
...
* Add NUT tests for an Eaton 5E650I UPS
* add a test to make sure multiple ups get setup
* Add a few more upses
* fix missing status key
* cover
* Force CI run
2020-04-15 20:28:03 -05:00