1
0
mirror of https://github.com/home-assistant/core.git synced 2025-04-30 04:07:51 +00:00

24 Commits

Author SHA1 Message Date
tdfountain
2571725eb9
Add metered PDU dynamic outlet sensors to NUT ()
* Add metered PDU dynamic outlet sensors

* Make deep copy and improve efficiency of loops

* Improve performance by creating new dict

Co-authored-by: J. Nick Koston <nick+github@koston.org>

* Remove unused import copy

* Use outlet name (if available) in friendly name and remove as separate sensor

---------

Co-authored-by: J. Nick Koston <nick+github@koston.org>
2025-03-21 11:41:43 -10:00
tdfountain
1c1a950c05
Add conditional support for ambient sensors in NUT ()
* Conditionally remove ambient sensors if not present

* Create ambient sensors list and use list comprehension

* Update homeassistant/components/nut/sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2025-03-05 12:12:56 +00:00
tdfountain
51a881f3b5
Add ambient temperature and humidity status sensors to NUT ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-02-24 14:09:43 +00:00
epenet
ead0e797c1
Use registry fixtures in tests (m-n) () 2024-05-28 13:40:45 +02:00
J. Nick Koston
4ac439ef88
Migrate nut to use aionut () 2024-03-23 12:02:02 -10:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] () 2024-03-08 14:55:15 +01:00
Jan-Philipp Benecke
0a57968fdc
Update nut sensor tests to use parametrize ()
* 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
Michael
1cce55d176
Add entity name translations to NUT () 2023-04-03 18:18:23 +02:00
epenet
3abf7ea18a
Add type hints to integration tests (m-p) () 2023-02-08 07:48:54 -08:00
zebardy
af107d7853
Add support for additional fields to nut ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-22 19:24:30 -10:00
ollo69
21f92f6286
Add Nut device explicitly to the device registry ()
* 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 ()
* 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
ollo69
b01170d917
Add Nut missing tests for config flow () 2021-10-18 07:17:10 -10:00
ollo69
827501659c
Nut: Use coordinator data, code cleanup and add test coverage () 2021-10-13 16:05:06 -10:00
ollo69
b54fc0229d
Use entity_registry_enabled_default for Nut sensors () 2021-10-13 11:33:03 -10:00
Michael
b11db0b1d7
Remove unnecessary extra attribute from NUT sensors () 2021-09-10 19:17:46 -07:00
Erik Montnemery
84226da404
Update tests i-o to use async_get() instead of async_get_registry() () 2021-03-09 14:32:08 +01:00
springstan
7de1fe7416
Use percentage constant in more integrations () 2020-09-19 10:30:22 -05:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
J. Nick Koston
abae48c287
Use config entry id for unique id if serial number is missing () 2020-04-16 14:59:30 -07:00
J. Nick Koston
188f3e35fd
Add tests for additional nut ups models ()
* 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
J. Nick Koston
173d7fa060
Handle all zero serial numbers in NUT ()
* Handle all zero serial numbers in NUT

* Add additional nut tests

* Update homeassistant/components/nut/__init__.py

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* remove re

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-04-12 15:29:35 -07:00
springstan
9f713dac7f
Use UNIT_PERCENTAGE constant () 2020-04-11 22:53:48 +02:00
J. Nick Koston
6e6ebb9495
Add tests for various NUT upses () 2020-04-11 18:17:57 +02:00