core/tests/components
Johan Bloemberg bbda2a72f4 Rflink 433Mhz gateway platform and components (#4547)
* Initial sketches of rflink component.

* Add requirement.

* Properly load configuration.

* Bump rflink for graceful parse errors and protocol callback.

* Cleanup, documentation and linting.

* More documentation, first sensor implementation (temp & hum).

* Add brightness/dim support for newkaku protocol.

* Use separate class for dimmables.

* Make sure non-dimmable newkaku devices are turned on.

* Move some code around, add switches. Support loading from config.

* Fix bug in ignoring devices.

* Fix initial state assumption.

* Improve reliability on invalid conditions.

* Allow configuration of group for new devices.

* Sensor icons.

* Fix parsing negative numbers.

* Correct icon.

* Allow sending commands serial.

* Pluralize.

* Allow adding sensors from config.

* Fix ignoring devices and bugs in previous commit.

* Share know devices so devices from configuration don't get added as lights.

* Lookup unit from value_key.

* Remove debug.

* Start implementing event protocol in place of packet protocol.

- Added first test suite for sensors.
- This currently breaks light and switch.

* Refactor switch component to fit new rflink changes. Add test suite.

* Fix style.

* Refactor and test lights. Bring coverage to 100%.

* Use non-broken and production tested rflink module.

* Update requirements.

* Bump for logging.

* Improve readability.

* Do not use global variable but keep known device state in intended place.

* Improve docs.

* Make icon support generic.

* Disable overriding icons in config, as it belongs in customization. Only keep custom icon for entities that are able to detect a icon based on the thing they represent (sensors in this case).

* Implement configuration schema, overall refactor of magic values.

* Fix bug in config/test wait_for_ack.

* Small refactors.

* Move command logic into separate class.

* Convert command sending logic to class based pattern instead of using the event bus.

* Start not using bus for rflink event propagation to platforms.

* Do not use event bus for all entity types.

* Fire an event on the bus for every switch incoming rflink command.

* Resolve lint errors, remove some old code.

* Known devices no longer need to be registered separately.

* Log bus events.

* Event callback is a..... callback.

* Use full entity id for events.

* Move event sending to entity.

* Log incoming events.

* Make firing events optional inline with rfxtrx.

* Add foundation for signal repetition.

* Add signal repetition config and tests.

* Make plain switchable type explicitly configurable.

* Enable default entity settings for automatically added entities as well.

* Prevent default configuration leaking accross entities.

* Make sure device defaults don't get overwritten by defaults further down.

* Don't let fast state switching and repetitions turn your house into a disco.

* Make repetitions more responsive.

* Disable on/off fallback on dimmables as it currently doesn't play nice with repetitions.

* Use rflink that allows send_command_ack to be safely cancelled.

* Reduce duplication and make repeat work for non-ack.

* Implement reconnection logic.

* Improve reconnection logic.

* Also cancel repetitions when entity state is changed due to external command.

* Update requirements.

* Fix linting.

* Fix spelling.

* Don't lie.

* Fix lint.

* Support for automatically creating protocol translation (fixes spaces in device names).

* Returned support for dimmable and on/off entity.

* Duplicate code to fix linting issues with inheritance.

* Allow overriding unit of measurement from config.
2017-01-31 08:11:52 -08:00
..
alarm_control_panel Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
automation Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
binary_sensor Add unittests for FFmpeg and spliting binary sensor (#5659) 2017-01-31 07:48:03 -08:00
calendar date fix (#5227) 2017-01-08 23:50:42 +01:00
camera Fix network tests to use get_test_instance_port 2017-01-21 22:15:05 -05:00
climate Hold mode (#5586) 2017-01-27 08:57:18 -08:00
cover Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
device_tracker [Device Tracker] Xiaomi Mi Router token refresh (#5437) 2017-01-19 15:05:37 +01:00
emulated_hue Fan improvements (#5457) 2017-01-20 22:21:28 -08:00
fan Wink fan support (#5174) 2017-01-13 22:08:13 -08:00
http Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
image_processing Move part of image_processing tests (#5634) 2017-01-29 14:40:37 -08:00
light Rflink 433Mhz gateway platform and components (#4547) 2017-01-31 08:11:52 -08:00
lock Async bootstrap / component init (#3991) 2016-10-27 00:16:23 -07:00
media_player sonos set coordinator after join/unjoin (#5584) 2017-01-27 15:37:16 +01:00
mqtt [mqtt] Embedded MQTT server fix (#5132) 2017-01-03 23:17:56 +01:00
notify Asyncio notify component migration (#5377) 2017-01-17 22:08:03 -08:00
recorder [recorder] Include & Exclude domain fix & unit tests (#5213) 2017-01-09 21:53:30 +01:00
remote Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
scene Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
sensor Rflink 433Mhz gateway platform and components (#4547) 2017-01-31 08:11:52 -08:00
switch Rflink 433Mhz gateway platform and components (#4547) 2017-01-31 08:11:52 -08:00
tts Fix network tests to use get_test_instance_port 2017-01-21 22:15:05 -05:00
weather Update tests, rename variable, and change conversion (#3546) 2016-10-24 21:53:03 -07:00
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_alexa.py Replace dots in Alexa built-in intent slots w/ underscores (#5092) 2016-12-29 17:26:23 +01:00
test_api.py More async tests (#4223) 2016-11-05 16:36:20 -07:00
test_apiai.py Voice command API.AI. First import (#5462) 2017-01-31 07:54:54 -08:00
test_configurator.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_conversation.py WIP Fix pylint and PEP257 issues (tests) (#4120) 2016-12-01 21:45:19 -08:00
test_demo.py Use setup_component in tests v1 (#3507) 2016-09-25 23:15:21 +02:00
test_device_sun_light_trigger.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_ffmpeg.py Add unittests for FFmpeg and spliting binary sensor (#5659) 2017-01-31 07:48:03 -08:00
test_frontend.py Reorganize HTTP component (#4575) 2016-11-25 13:04:06 -08:00
test_google.py Upgrade aiohttp to 1.1.5 (#4213) 2016-11-24 21:37:56 -08:00
test_graphite.py Removing calls to mock.assert_called_once_with (#3896) 2016-10-16 16:13:27 -07:00
test_group.py Add option to hide the group card switch (#4631) 2016-12-03 17:50:11 -08:00
test_history.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_influxdb.py Improve InfluxDB (#5238) 2017-01-14 09:52:47 -08:00
test_init.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_input_boolean.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_input_select.py Add set_options_service for input select (#5630) 2017-01-30 09:17:57 -08:00
test_input_slider.py Disable too-many-* (#4107) 2016-10-30 22:18:53 +01:00
test_introduction.py Use setup_component in tests v1 (#3507) 2016-09-25 23:15:21 +02:00
test_litejet.py Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
test_logbook.py Filter new entities from logbook (#5402) 2017-01-19 23:30:47 -08:00
test_logentries.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_logger.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_microsoft_face.py [image_processing/microsoft_face_identify] face recognition for automation (#5472) 2017-01-24 21:50:10 -08:00
test_mqtt_eventstream.py Clean up tests (#4209) 2016-11-03 21:58:18 -07:00
test_panel_custom.py Async bootstrap / component init (#3991) 2016-10-27 00:16:23 -07:00
test_panel_iframe.py Upgrade aiohttp to 1.1.5 (#4213) 2016-11-24 21:37:56 -08:00
test_persistent_notification.py Use setup_component in tests v1 (#3507) 2016-09-25 23:15:21 +02:00
test_pilight.py Add teardown method to pilight tests (#5195) 2017-01-08 14:23:01 +01:00
test_proximity.py Migrate to voluptuous (#3293) [BREAKING CHANGE] 2016-10-11 00:26:11 -07:00
test_rest_command.py [new] component rest_command (#5055) 2017-01-06 23:42:53 +01:00
test_rflink.py Rflink 433Mhz gateway platform and components (#4547) 2017-01-31 08:11:52 -08:00
test_rfxtrx.py Clean up tests (#4209) 2016-11-03 21:58:18 -07:00
test_script.py Convert script component to async (#4427) 2016-11-17 21:50:01 -08:00
test_shell_command.py Optimize template 2 (#3521) 2016-09-27 21:29:55 -07:00
test_sleepiq.py WIP Fix pylint and PEP257 issues (tests) (#4120) 2016-12-01 21:45:19 -08:00
test_splunk.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_statsd.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_sun.py WIP Fix pylint and PEP257 issues (tests) (#4120) 2016-12-01 21:45:19 -08:00
test_updater.py Make updater more robust (#4625) 2016-11-30 13:03:09 -08:00
test_weblink.py Use setup_component in tests v2 (#3537) 2016-09-26 23:20:36 +02:00
test_websocket_api.py Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
test_zone.py Fix zone being setup twice 2016-09-24 00:04:03 -07:00
test_zwave.py Apply new customize format to Zwave (#5603) 2017-01-28 22:29:51 +02:00