Pär Holmdahl
85b608912b
Add energy sensor to adax ( #145995 )
...
* 2nd attempt to add energysensors to Adax component
* Ruff format changes
* I did not reuse the first call for information.. Now i do..
* Fixed some tests after the last change
* Remove extra attributes
* Dont use info logger
* aggregate if not rooms
* Raise error if no rooms are discovered
* Move code out of try catch
* Catch more specific errors
* removed platforms from manifest.json
* remove attribute translation key
* Getting rid of the summation of energy used..
* Fixed errorness in test
* set roomproperty in Init
* concatenated the two functions
* use raw Wh values and suggest a konversion for HomeAssistant
* Use snapshot testing
* Update homeassistant/components/adax/coordinator.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/strings.json
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Removing un needed logg
* Removing initial value
* Changing tests to snapshot_platform
* Removing available property from sensor.py and doing a ruff formating..
* Fix a broken indent
* Add fix for coordinator updates in Adax energisensor and namesetting
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/coordinator.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/coordinator.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* generated snapshots
* Ruff changes
* Even more ruff changes, that did not appear on ruff command locally
* Trying to fix CI updates
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
* Improve AdaxEnergySensor by simplifying code and ensuring correct handling of energy values. Adjust how room and device information is retrieved to avoid duplication and improve readability.
* Removed a test för device_id as per request..
* Make supersure that value is int and not "Any"
* removing executable status
* Update tests/components/adax/test_sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev >
---------
Co-authored-by: Josef Zweck <josef@zweck.dev >
2025-06-03 10:36:43 +02:00
..
2025-05-28 21:00:38 +03:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-27 19:29:04 +02:00
2025-06-03 10:36:43 +02:00
2025-05-28 21:00:38 +03:00
2025-05-19 13:55:48 +02:00
2025-05-28 15:51:49 +02:00
2025-05-28 15:51:49 +02:00
2025-05-28 15:51:49 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 21:00:38 +03:00
2025-06-02 09:48:42 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-06-02 10:29:17 +02:00
2025-05-26 19:28:27 +02:00
2025-05-23 10:31:44 -04:00
2025-05-28 12:09:05 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 23:08:07 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 15:51:37 +02:00
2025-05-28 21:00:38 +03:00
2025-05-19 14:18:35 +02:00
2025-05-28 21:00:38 +03:00
2025-05-26 19:40:29 +02:00
2025-06-02 06:12:22 +02:00
2025-05-26 16:07:33 +02:00
2025-05-28 21:00:38 +03:00
2025-05-26 19:28:27 +02:00
2025-05-26 16:07:33 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 21:00:38 +03:00
2025-05-26 22:14:27 +02:00
2025-05-28 15:51:37 +02:00
2025-05-20 09:31:42 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:31:37 -07:00
2025-05-28 21:00:38 +03:00
2025-06-01 06:31:37 -07:00
2025-05-28 21:00:38 +03:00
2025-05-28 21:00:38 +03:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 15:51:37 +02:00
2025-05-28 15:51:37 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 15:51:37 +02:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 15:51:37 +02:00
2025-05-26 16:07:33 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-06-01 06:31:37 -07:00
2025-05-28 21:00:38 +03:00
2025-05-26 15:05:44 +02:00
2025-05-28 12:26:28 +02:00
2025-05-19 13:43:06 -04:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 21:00:38 +03:00
2025-05-26 19:28:27 +02:00
2025-05-28 21:00:38 +03:00
2025-06-02 10:37:29 +02:00
2025-05-28 21:00:38 +03:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 21:00:38 +03:00
2025-05-28 21:00:38 +03:00
2025-05-28 21:00:38 +03:00
2025-05-19 12:05:33 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 21:50:28 +02:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 06:12:22 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 21:50:28 +02:00
2025-05-28 12:09:05 +02:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-29 01:45:37 -05:00
2025-05-28 15:51:37 +02:00
2025-05-19 13:55:48 +02:00
2025-05-19 13:55:48 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:28:27 +02:00
2025-06-01 06:31:37 -07:00
2025-05-19 20:02:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:40:29 +02:00
2025-06-02 06:12:22 +02:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:31:37 -07:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 21:06:25 +03:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:28:27 +02:00
2025-05-14 23:13:37 +02:00
2025-05-19 13:55:48 +02:00
2025-06-01 06:31:37 -07:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:40:29 +02:00
2025-05-28 15:51:37 +02:00
2025-06-01 06:31:37 -07:00
2025-05-19 13:55:48 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 16:07:33 +02:00
2025-05-25 21:50:55 -04:00
2025-06-01 06:31:37 -07:00
2025-05-28 12:09:05 +02:00
2025-06-01 06:31:37 -07:00
2025-05-27 18:53:45 +02:00
2025-05-28 21:06:25 +03:00
2025-05-28 21:06:25 +03:00
2025-05-28 21:06:25 +03:00
2025-06-01 06:31:37 -07:00
2025-05-31 11:12:00 +02:00
2025-06-02 09:45:14 +02:00
2025-05-28 21:06:25 +03:00
2025-05-26 20:48:07 +02:00
2025-05-28 21:06:25 +03:00
2025-06-01 06:31:37 -07:00
2025-05-21 10:57:20 +01:00
2025-05-28 15:51:37 +02:00
2025-05-21 10:57:20 +01:00
2025-05-21 10:57:20 +01:00
2025-05-27 09:48:59 +02:00
2025-06-02 06:12:22 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 06:12:22 +02:00
2025-05-28 14:43:48 +02:00
2025-05-16 10:38:17 +02:00
2025-05-28 21:06:25 +03:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 15:51:37 +02:00
2025-06-02 06:12:22 +02:00
2025-05-26 21:13:47 +02:00
2025-05-26 19:28:27 +02:00
2025-06-01 21:14:19 +02:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:31:37 -07:00
2025-05-26 19:40:29 +02:00
2025-05-28 15:51:37 +02:00
2025-05-26 19:28:27 +02:00
2025-05-15 14:43:35 +02:00
2025-05-26 19:28:27 +02:00
2025-05-15 14:43:58 +02:00
2025-06-01 06:31:37 -07:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-15 13:50:48 -05:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-20 19:01:24 +02:00
2025-05-27 08:48:06 +02:00
2025-05-28 21:06:25 +03:00
2025-05-26 19:28:27 +02:00
2025-05-28 12:09:05 +02:00
2025-05-28 21:06:25 +03:00
2025-05-14 14:05:23 +02:00
2025-05-28 10:15:24 +02:00
2025-05-19 13:55:48 +02:00
2025-06-02 08:54:55 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-27 16:45:30 -04:00
2025-05-28 12:09:05 +02:00
2025-06-01 06:29:17 -07:00
2025-06-02 08:54:55 +02:00
2025-05-21 16:37:51 +01:00
2025-06-02 08:54:55 +02:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-06-02 08:54:55 +02:00
2025-05-27 17:46:21 +02:00
2025-06-01 06:29:17 -07:00
2025-05-28 12:09:05 +02:00
2025-05-19 15:03:21 -05:00
2025-05-21 16:37:51 +01:00
2025-05-19 13:55:48 +02:00
2025-05-28 12:09:05 +02:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-05-28 12:09:05 +02:00
2025-05-26 18:39:13 +02:00
2025-05-28 15:51:37 +02:00
2025-05-26 21:04:38 +02:00
2025-06-01 06:29:17 -07:00
2025-06-02 08:59:19 +02:00
2025-05-19 14:18:35 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-21 16:37:51 +01:00
2025-06-02 06:12:22 +02:00
2025-06-02 08:54:55 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 12:09:05 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 15:01:35 -07:00
2025-06-02 08:59:11 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 12:09:05 +02:00
2025-05-27 19:58:05 +02:00
2025-06-02 15:10:46 +02:00
2025-06-01 06:29:17 -07:00
2025-06-02 08:54:55 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 15:51:37 +02:00
2025-06-01 06:29:17 -07:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:29:17 -07:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-17 09:36:14 -07:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-05-28 12:09:05 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 21:34:48 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 12:09:05 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 23:24:53 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-19 13:55:48 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 22:50:09 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 15:37:07 +02:00
2025-05-22 12:18:56 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 14:18:35 +02:00
2025-06-02 08:54:55 +02:00
2025-05-26 19:40:29 +02:00
2025-06-01 06:29:17 -07:00
2025-06-02 08:54:55 +02:00
2025-06-02 08:54:55 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:28:27 +02:00
2025-06-01 06:29:17 -07:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 12:09:05 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-06-01 06:29:17 -07:00
2025-05-28 12:09:05 +02:00
2025-05-27 14:35:14 -05:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-06-01 06:29:17 -07:00
2025-05-20 09:15:26 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 10:56:07 +02:00
2025-06-01 06:29:17 -07:00
2025-06-02 10:37:29 +02:00
2025-05-31 20:00:34 +02:00
2025-06-02 08:48:37 +02:00
2025-06-02 15:12:34 +02:00
2025-06-01 06:29:17 -07:00
2025-05-27 21:36:51 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-05-28 15:51:37 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 10:32:48 +02:00
2025-06-01 06:29:17 -07:00
2025-06-01 06:29:17 -07:00
2025-05-26 15:06:33 +02:00
2025-05-30 20:22:40 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 16:07:33 +02:00
2025-05-19 13:55:48 +02:00
2025-06-01 06:29:17 -07:00
2025-05-19 14:18:35 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 12:09:05 +02:00
2025-05-29 10:35:05 +03:00
2025-06-02 08:52:31 +02:00
2025-05-23 16:32:21 +02:00
2025-06-02 10:37:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-31 20:01:10 +02:00
2025-05-29 03:58:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-05-28 15:51:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-06-01 06:29:17 -07:00
2025-05-26 19:28:27 +02:00
2025-05-19 13:55:48 +02:00
2025-06-01 06:29:17 -07:00
2025-05-26 19:28:27 +02:00
2025-05-28 12:09:05 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-06-02 09:27:53 +02:00
2025-06-01 06:29:17 -07:00
2025-06-02 08:48:37 +02:00
2025-05-26 14:56:55 +02:00
2025-05-28 15:51:37 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:47:46 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:40:29 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-06-01 06:29:17 -07:00
2025-05-28 15:51:37 +02:00
2025-05-20 14:19:48 +01:00
2025-06-01 06:29:17 -07:00
2025-05-28 15:51:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 15:51:37 +02:00
2025-06-01 06:29:17 -07:00
2025-05-26 16:07:33 +02:00
2025-05-28 12:09:05 +02:00
2025-05-27 12:54:57 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:28:27 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 20:48:07 +02:00
2025-05-19 13:55:48 +02:00
2025-05-28 12:09:05 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:40:29 +02:00
2025-05-29 15:28:54 +02:00
2025-05-21 20:15:26 +02:00
2025-05-19 13:55:48 +02:00
2025-06-02 08:48:37 +02:00
2025-05-19 13:55:48 +02:00
2025-05-26 19:28:27 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 20:59:07 +02:00
2025-06-02 08:48:37 +02:00
2025-05-26 19:40:29 +02:00
2025-05-26 06:53:09 +02:00
2025-05-30 19:53:33 +02:00
2025-06-02 09:52:02 +02:00