Joakim Plate
a3310330f4
Split handling and application of event ( #37665 )
...
This way _handle_event can contain things available
when entity has been added to home assistant,
and _apply event can remain internal and used on init.
2020-07-09 11:40:37 +02:00
Joakim Plate
d0983b69df
Switch what is used for unique identifier ( #37581 )
...
* Switch what is used for device identifier
type_string can be changed if new device types are added based
on same driver.
* No need to slugify unique id
2020-07-07 21:50:19 +02:00
Joakim Plate
2088092f7c
Switch rfxtrx to dispatcher ( #37271 )
...
* Switch to dispatcher
* Adjust tests for dispatcher
* Store device in sensor
* Move state application into binary sensor entity class
* Move more specifics into per platform classes
* Should not apply event in init of sensor
* Switch to call_later
* Make apply_event public
* No point in slugifying debug logs
* Adjust error in off delay and event
* Make sure we match with masked id
2020-07-06 00:10:26 +02:00
Joakim Plate
01fd33f173
Switch tests to use hass objects instead of direct ( #37530 )
...
* 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
201dab93ff
Attempt to set unique id of rfxtrx device ( #37159 )
2020-06-27 21:59:42 -07:00
springstan
ef9d9b17bd
Drop UNIT_ prefix for constants ( #34164 )
...
* Drop UNIT_ prefix for VOLT
* Drop UNIT_ prefix for DEGREE
* Drop UNIT_ prefix for CONDUCTIVITY
* Drop UNIT_ prefix for UV_INDEX
* Run isort
2020-04-21 19:45:53 +02:00
Ernst Klamer
5617e6913b
Add state to RFXtrx covers ( #30935 )
...
* Add state to rfxtrx cover
* Add state to rfxtrx cover (cover.py)
2020-04-16 15:07:55 +02:00
springstan
44afffcfbf
Use UNIT_UV_INDEX constant ( #34055 )
2020-04-12 21:04:13 +02:00
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
foxy82
9fd6afc5fb
Allow connection to rfxtrx using tcp ( #28297 )
2019-11-19 21:11:17 -05:00
javicalle
de7963544f
Apply isort on rfxtrx classes ( #27615 )
...
* Move imports in rfxtrx component
* Apply isort on rfxtrx files
* Update test_switch.py
2019-10-14 10:38:34 -05:00
javicalle
40e5beb0ed
Move imports in rfxtrx component ( #27549 )
2019-10-12 12:37:59 -07:00
Franck Nijhof
445c741b30
Use literal string interpolation in integrations R-S (f-strings) ( #26392 )
2019-09-03 21:14:39 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Daniel Høyer Iversen
6cef850497
Rfxtrx, add data types ( #24066 )
...
* Rfxtrx, add data types
* fix style
2019-05-24 09:46:59 +02:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Diogo Gomes
ed2b9e5483
Centrally define Watt ( #21570 )
...
* centralize Watt definition
* lint
2019-03-02 11:29:59 +01:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ( #20677 )
...
* Consolidate all components with platforms
* Organize tests
* Fix more tests
* Fix Verisure tests
* one final test fix
* Add change
* Fix coverage
2019-02-02 07:13:16 -08:00