Commit graph

11 commits

Author SHA1 Message Date
Joakim Plate
53844488d8
Switch rfxtrx to integration level config ()
* Switch to integration level config

* Switch to per device config rather than per entity type

* All roller shutters should be added as covers

(there are non lighting types)

* Fixup tests that used invalid packets for platforms

* Avoid variable re-use

* Allow control events on sensors too

That way we get signal level sensors for these too

* Lint correction

* Don't filter sensors from config

Disable sensors from GUI if the entities are not wanted

* Correct usage of ATTR_ instead of CONF_

* Make sure the logging when a new entity is added includes the event
2020-07-12 22:03:22 +02:00
Joakim Plate
5255bf20d3
Add rfxtrx device classes to known types ()
* Add device classes to known types

* Update homeassistant/components/rfxtrx/sensor.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-07-10 21:47:37 +02:00
Joakim Plate
67038c6ba8
Rewrite rfxtrx init logic to do away with global object ()
* Rewrite init logic to do away with global object

* Put constant at end

* Use a set instead of list for device_ids
2020-07-10 14:52:07 +02:00
Joakim Plate
01fd33f173
Switch tests to use hass objects instead of direct ()
* Switch tests to use hass objects instead of direct

* Make sure sensor update state

* Add some initial binary sensor tests

* Add initial binary sensor tests

* Add tests for pt2262

* Add test for off delay
2020-07-05 22:41:11 +02:00
Joakim Plate
ab4687d914
Convert rfxtrx tests to pytest async tests and re-enable ()
* Rework and re-enable rfxtrx tests

* Add missed change to _signal_event

* Fixup the dummy serial that causes max cpu

* Make sure we cleanup thread here too

* Make sure we always wait for tasks before we check state

* Some more places we need to wait before checking
2020-07-03 10:22:02 +02:00
Joakim Plate
464f17f182
Fixup rfxtrx tests to at least run () 2020-06-27 21:54:27 -07:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup () 2020-06-08 12:26:40 -07:00
springstan
f1a0ca7cd3
Add and use percentage constant ()
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
javicalle
de7963544f Apply isort on rfxtrx classes ()
* Move imports in rfxtrx component

* Apply isort on rfxtrx files

* Update test_switch.py
2019-10-14 10:38:34 -05:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
e9ea5c2ccb Move tests to right folder ()
* Move tests to right folder

* Fix test leaving files behind
2019-05-10 13:20:50 -07:00
Renamed from tests/components/sensor/test_rfxtrx.py (Browse further)