hass-core/tests/components/sensor
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
..
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_api_streams.py Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
test_command_line.py Optimize template 2 (#3521) 2016-09-27 21:29:55 -07:00
test_darksky.py Added forecast support to DarkSky (#5264) 2017-01-26 22:32:45 -08:00
test_dsmr.py DSMR: TCP, reconnecting and V4 CRC support (#5164) 2017-01-16 23:56:00 -08:00
test_imap_email_content.py Use device_state_attributes() for platforms (#5649) 2017-01-30 16:16:49 +01:00
test_mfi.py Removing calls to mock.assert_called_once_with (#3896) 2016-10-16 16:13:27 -07:00
test_min_max.py New config parameter for min_max sensor to specify number of digits for rounding mean value (#4237) 2016-11-22 15:36:29 +01:00
test_moldindicator.py Use setup_component in tests (#3414) 2016-09-17 10:29:58 -07:00
test_mqtt.py Async bootstrap / component init (#3991) 2016-10-27 00:16:23 -07:00
test_mqtt_room.py Use setup_component in tests (#3414) 2016-09-17 10:29:58 -07:00
test_pilight.py Use voluptuous for Pilight switch (#3819) 2016-10-31 13:18:47 +01:00
test_random.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_rest.py Fixes for rest tests (#5495) 2017-01-23 10:17:29 -05:00
test_rflink.py Rflink 433Mhz gateway platform and components (#4547) 2017-01-31 08:11:52 -08:00
test_rfxtrx.py Lazy initialise the worker pool (#4110) 2016-10-31 08:47:29 -07:00
test_sleepiq.py Fix tests closing properly (#5203) 2017-01-07 01:47:25 +01:00
test_sonarr.py Fix tests closing properly (#5203) 2017-01-07 01:47:25 +01:00
test_statistics.py Statistics sensor (#3513) 2016-10-04 01:04:00 -07:00
test_tcp.py Fix TCP sensor to correctly use value_template (#5211) 2017-01-11 17:26:29 +01:00
test_template.py Continue on invalid platforms and new setup_component unit tests (#3736) 2016-10-08 11:27:35 -07:00
test_worldclock.py Add test (#3999) 2016-10-24 22:01:38 -07:00
test_wsdot.py Added new Washington State DOT sensor. (#5496) 2017-01-24 22:08:19 -08:00
test_wunderground.py Fix tests closing properly (#5203) 2017-01-07 01:47:25 +01:00
test_yahoo_finance.py Allow multiple symbols (sensor.yahoo_finance) (#4126) 2016-10-31 13:31:09 +01:00
test_yr.py [WIP] Spread the traffic to yr.no servers and remove yr.no from the default… (#5171) 2017-01-04 23:20:30 +01:00