Files
core/tests/components
Myles Eftos 412ecacca3 Amberelectric (#56448)
* Add Amber Electric integration

* Linting

* Fixing some type hinting

* Adding docstrings

* Removing files that shouldn't have been changed

* Splitting out test helpers

* Testing the price sensor

* Testing Controlled load and feed in channels

* Refactoring mocks

* switching state for native_value and unit_of_measurement for native_unit_of_measurement

* Fixing docstrings

* Fixing requiremennts_all.txt

* isort fixes

* Fixing pylint errors

* Omitting __init__.py from test coverage

* Add missing config_flow tests

* Adding more sensor tests

* Applying suggested changes to __init.py__

* Refactor coordinator to return the data object with all of the relevent data already setup

* Another coordinator refactor - Better use the dictionary for when we build the sensors

* Removing first function

* Refactoring sensor files to use entity descriptions, remove factory

* Rounding renewable percentage, return icons correctly

* Cleaning up translation strings

* Fixing relative path, removing TODO

* Coordintator tests now accept new (more accurate) fixtures

* Using a description placeholder

* Putting missing translations strings back in

* tighten up the no site error logic - self._site_id should never be None at the point of loading async_step_site

* Removing DEVICE_CLASS, replacing the units with AUD/kWh

* Settings _attr_unique_id

* Removing icon function (it's already the default)

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Adding strings.json

* Tighter wrapping for try/except

* Generating translations

* Removing update_method - not needed as it's being overriden

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Fixing tests

* Add missing description placeholder

* Fix warning

* changing name from update to update_data to match async_update_data

* renaming [async_]update_data => [async_]update_price_data to avoid confusion

* Creating too man renewable sensors

* Override update method

* Coordinator tests use _async_update_data

* Using $/kWh as the units

* Using isinstance instead of __class__ test. Removing a zero len check

* Asserting self._sites in second step

* Linting

* Remove useless tests

Co-authored-by: jan iversen <jancasacondor@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-09-28 00:03:51 -07:00
..
2021-01-01 22:31:56 +01:00
2021-07-21 10:25:46 +02:00
2021-09-23 13:20:30 -07:00
2021-08-17 17:29:20 +02:00
2021-09-28 00:03:51 -07:00
2021-03-18 15:13:22 +01:00
2021-07-14 10:45:47 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-08-10 09:19:28 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-09-18 21:59:04 +02:00
2021-01-01 22:31:56 +01:00
2021-09-13 18:18:21 +02:00
2021-03-18 15:13:22 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-06-26 15:36:45 -07:00
2021-01-01 22:31:56 +01:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-08-24 12:00:37 +02:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-07-09 07:55:26 +02:00
2021-01-01 22:31:56 +01:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-02-28 14:16:37 +01:00
2021-01-01 22:31:56 +01:00
2021-04-27 13:44:59 -07:00
2021-02-08 14:44:46 +01:00
2021-08-16 14:52:53 -05:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-09-13 18:18:21 +02:00
2021-01-01 22:31:56 +01:00
2021-07-27 01:46:01 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-07-30 07:11:58 -07:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-06-11 13:35:03 +02:00
2021-06-28 16:59:17 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-08-27 11:04:07 -05:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-08-16 12:56:10 +02:00
2021-08-11 11:07:04 +02:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-03-18 15:13:22 +01:00
2021-01-01 22:31:56 +01:00
2021-03-19 15:54:07 +01:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00