Patrik Lindgren
9d404b749a
Implement coordinator class for Tradfri integration ( #64166 )
...
* Initial commit coordinator
* More coordinator implementation
* More coordinator implementation
* Allow integration reload
* Move API calls to try/catch block
* Move back fixture
* Remove coordinator test file
* Ensure unchanged file
* Ensure unchanged conftest.py file
* Remove coordinator key check
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Import RequestError
* Move async_setup_platforms to end of setup_entry
* Remove centralised handling of device data and device controllers
* Remove platform_type argument
* Remove exception
* Remove the correct exception
* Refactor coordinator error handling
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove platform type from base class
* Remove timeout context manager
* Refactor exception callback
* Simplify starting device observation
* Update test
* Move observe start into update method
* Remove await self.coordinator.async_request_refresh()
* Refactor cover.py
* Uncomment const.py
* Add back extra_state_attributes
* Update homeassistant/components/tradfri/coordinator.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Refactor switch platform
* Expose switch state
* Refactor sensor platform
* Put back accidentally deleted code
* Add set_hub_available
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix tests for fan platform
* Update homeassistant/components/tradfri/base_class.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tradfri/base_class.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix non-working tests
* Refresh sensor state
* Remove commented line
* Add group coordinator
* Add groups during setup
* Refactor light platform
* Fix tests
* Move outside of try...except
* Remove error handler
* Remove unneeded methods
* Update sensor
* Update .coveragerc
* Move signal
* Add signals for groups
* Fix signal
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-27 11:12:52 +01:00
Patrik Lindgren
c2181aa5fc
Add test cases for Tradfri switch platform ( #64156 )
...
* Add tests for the switch platform
* Fix typo
* Typos
2022-01-15 12:27:42 +01:00
jan iversen
ad91e4b417
Simplify setup of tradfri entities ( #59343 )
...
* Simplify detection of devices.
2021-11-09 15:18:13 +01:00
jan iversen
55534cfedd
When tradfri device goes offline set attr_available false ( #58487 )
2021-10-27 18:27:16 +02:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) ( #56777 )
2021-09-29 16:19:06 +02:00
jan iversen
93e9a67d7d
Make tradfri base_class.py strictly typed ( #56341 )
...
* Make base_class.py strictly typed.
2021-09-20 14:33:50 +02:00
jan iversen
9b710cad5d
Add strict typing to tradfri __init__ and switch ( #56002 )
...
* Add strict typing to __init__ and switch.
* Review comments.
* Review comments.
* Corrected switch.
2021-09-18 23:24:35 +02:00
jan iversen
0dd128af77
Change fix property to _attr for tradfri ( #55691 )
2021-09-06 08:49:00 +02:00
Martin Hjelmare
b6630a48b2
Add tradfri api call error handling ( #39681 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-09-05 23:02:32 +02:00
Martin Hjelmare
bde0bdbf80
Clean tradfri hass data and add tests ( #39620 )
2020-09-03 18:39:24 +02:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity ( #34673 )
2020-04-26 18:50:37 +02:00
springstan
9fbb345ce0
Move imports to top for tradfri ( #29247 )
2019-11-30 21:23:39 -08:00
Patrik
78e9bba279
Refactor Tradfri constants ( #27334 )
...
* Refactor constants
* Rename constant
* Rename constant
* Rename constant
* Review update
* Remove duplicate constant
* Reorder constants
* Dont refresh features
* Order package imports
* Fix bug
* Put back features in refresh
* Fix import order
* Refactor supported features
* Refactor supported features, take 2
2019-10-09 12:56:16 -07:00
Patrik
5ae497bfdc
Refactor Tradfri switch device ( #26864 )
...
* Refactor Tradfri switch device
* Lint
* Lint
* Removed unused constant
* Add base_class
* Lint
* Improvements after review
* Typo
2019-10-05 12:46:16 -07:00
Patrik
49fef9a6a0
Add basic support for IKEA Fyrtur blinds ( #26659 )
...
* Add basic support for IKEA Fyrtur blinds
* Update coveragerc
* Fix typo
* Fix typos
* Update following review
* Fix incorrect rebase
* Fix error
* Update to new format of unique id
* Add cover
* Remove reference to cover in unique id
2019-09-22 23:01:32 +02:00
Franck Nijhof
ef0e9431b6
Use literal string interpolation in integrations T-W (f-strings) ( #26394 )
2019-09-03 21:12:51 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Penny Wood
84e6813779
Rename via_hub to via_device ( #24360 )
...
* Rename via_hub to via_device
* Fixed registry interactions
2019-06-10 09:10:44 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07: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
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00