core/tests
Johan Bloemberg 64cfc4ff02 DSMR sensor (#4309)
* Initial implemenation of DSMR component.

* Fix linting

* Remove protocol V2.2 support until merged upstream.

* Generate requirements using script.

* Use updated dsmr-parser with protocol 2.2 support.

* Add tests.

* Isort and input validation.

* Add entities for gas and actual meter reading. Error handling. Use Throttle.

* Implement non-blocking serial reader.

* Improve logging.

* Merge entities into one, add icons, fix tests for asyncio.

* Add error logging for serial reader.

* Refactoring and documentation.

- refactor asyncio reader task to make sure it stops with HA
- document general principle of this component
- refactor entity reading to be more clear
- remove cruft from split entity implementation

* Use `port` configuration key.

* DSMR V2.2 seems to conflict in explaining which tariff is high and low.

http://www.netbeheernederland.nl/themas/hotspot/hotspot-documenten/?dossierid=11010056&title=Slimme%20meter&onderdeel=Documenten
> DSMR v2.2 Final P1
>> 6.1: table vs table note

    Meter Reading electricity delivered to client normal tariff) in 0,01 kWh - 1-0:1.8.1.255
    Meter Reading electricity delivered to client (low tariff) in 0,01 kWh - 1-0:1.8.2.255

    Note: Tariff code 1 is used for low tariff and tariff code 2 is used for normal tariff.

* Refactor to use asyncio.Protocol instead of loop+queue.

* Fix requirements

* Close transport when HA stops.

* Cleanup.

* Include as dependency for testing (until merged upstream.)

* Fix style.

* Update setup.cfg
2016-11-22 23:03:39 -08:00
..
components DSMR sensor (#4309) 2016-11-22 23:03:39 -08:00
fixtures Unittests for ddwrt device tracker and bugfix (#3996) 2016-10-24 22:18:24 -07:00
helpers Fix warning in test 2016-11-22 12:48:35 -08:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts http: reimplement X-Forwarded-For parsing (#4355) 2016-11-12 16:14:39 -08:00
test_util Async version of Yr.no (#4158) 2016-11-02 19:34:12 -07:00
testing_config/custom_components Upgrade linter (#4461) 2016-11-18 21:47:59 -08:00
util Entity and climate: do not convert temperature unnecessary (#4522) 2016-11-22 17:38:04 -08:00
__init__.py async HTTP component (#3914) 2016-10-23 23:48:01 -07:00
common.py Fix lint issues for 0.33 (#4451) 2016-11-18 23:05:03 +01:00
conftest.py Upgrade linter (#4461) 2016-11-18 21:47:59 -08:00
test_bootstrap.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_config.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_core.py change add_job to use call_soon_threadsafe (#4410) 2016-11-16 20:00:08 -08:00
test_loader.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_main.py Migrate core from threads to async awesomeness (#3248) 2016-09-12 19:16:14 -07:00
test_remote.py More async tests (#4223) 2016-11-05 16:36:20 -07:00