Patrik Lindgren
4b5996c5ed
Drop support for Tradfri groups and YAML configuration ( #68033 )
...
* Drop support for Tradfri groups
* Remove context
* Remove async_setup
* Mark removed
* Pass generator expression
2022-04-01 23:26:35 +02:00
Marc Mueller
add741d789
Update coordinator typing (6) [t-v] ( #68466 )
2022-03-21 14:20:35 +01:00
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
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
ff853b2d53
Use assignment expressions 19 ( #57968 )
2021-10-18 15:54:38 +02:00
Marc Mueller
d5116810d4
Use assignment expressions 08 ( #57788 )
2021-10-17 20:02:42 +02:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) ( #56777 )
2021-09-29 16:19:06 +02:00
jan iversen
df56953c98
Strictly type tradfri light.py ( #56389 )
...
* Strictly type light.py.
2021-09-20 21:54:50 +02:00
jan iversen
0dd128af77
Change fix property to _attr for tradfri ( #55691 )
2021-09-06 08:49:00 +02:00
Erik Montnemery
154c849eac
Filter unsupported parameters from light service calls ( #51084 )
...
* Filter unsupported parameters from light service calls
* Silence pylint
* Fix deconz tests
* Fix mqtt tests
* Fix scene tests
* Fix trådfri emulated CT
* Fix mqtt tests
2021-05-26 08:02:59 +02:00
Marc Mueller
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
Philip Allgaier
dde6305549
Cleanup unused loggers (components N-Z + tests) ( #41982 )
2020-10-16 21:24:08 -05: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
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
springstan
9fbb345ce0
Move imports to top for tradfri ( #29247 )
2019-11-30 21:23:39 -08:00
Patrik
86347a3d5f
Refactor Tradfri light group ( #27714 )
...
* Set same manufacturer name of gateway as of devices
* Refactor Tradfri light group
* Restore should_poll and async_update
2019-10-21 21:42:17 +02: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
fe155faf6a
Refactor tradfri light ( #27259 )
...
* Refactor light file
* Update following review
2019-10-07 10:43:47 -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
emontnemery
4d1633807c
Turn light off if brightness is 0 ( #22400 )
...
* Turn light off if brightness is 0
* Lint
* Review comments
* Lint
* Fixup, add tests
* Fix trådfri light + test
2019-03-30 21:04:32 -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