GitHub Action
ceb8bb4745
[ci skip] Translation update
2022-05-21 00:22:49 +00:00
Franck Nijhof
c3d19f3827
Clean up accessing device_registry helpers via hass ( #72031 )
2022-05-17 12:22:15 -07:00
GitHub Action
37f81b261d
[ci skip] Translation update
2022-05-16 00:24:28 +00:00
GitHub Action
348016dbbf
[ci skip] Translation update
2022-04-29 00:22:21 +00:00
epenet
c0d8f94487
Adjust ColorMode type hint in light ( #70806 )
...
* Adjust ColorMode type hint in light
* Adjust components
2022-04-27 16:02:23 +02:00
epenet
9a38172d1f
Use ColorMode enum in tradfri ( #70544 )
2022-04-23 09:46:24 -10:00
Patrik Lindgren
74021d62da
Finalize deprecation of groups in Tradfri integration ( #69460 )
...
* Finalise cleanup of groups
* Fix tests
* Remove
* Revert change
2022-04-07 22:19:12 +02:00
Patrik Lindgren
af5d29735f
Deprecate SUPPORT_*-constants for Tradfri integration ( #69368 )
...
* Refactor constants
* Remove _LOGGER
* Fix sort order
* Refactor constats
* Run isort
* Remove SUPPORTED_ constants from Tradfri integration
* Remove constant
* Remove line
* Use brackets
* Add documentation
* Address review comments
2022-04-07 09:06:29 +02:00
Patrik Lindgren
04fc3a1f25
Cleanup constants in Tradfri integration ( #69125 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-05 14:00:45 +02:00
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
Paulus Schoutsen
ce5d20eb8e
Update tradfri deprecation message ( #69005 )
2022-03-31 20:20:50 +02:00
Marc Mueller
53110f8cb7
Update pylint to 2.13.2 ( #68704 )
2022-03-27 16:08:24 +02:00
Marc Mueller
add741d789
Update coordinator typing (6) [t-v] ( #68466 )
2022-03-21 14:20:35 +01:00
J. Nick Koston
723dcbafca
Complete fan speed transition from #59781 ( #67743 )
2022-03-09 10:38:12 +01:00
Martin Hjelmare
93247d7933
Use RequestError in tradfri ( #67101 )
2022-02-23 09:34:32 +01:00
GitHub Action
102ae9f0e3
[ci skip] Translation update
2022-02-22 00:17:23 +00:00
GitHub Action
c4cc6ca0ba
[ci skip] Translation update
2022-02-20 00:20:09 +00:00
GitHub Action
ad0cb4831e
[ci skip] Translation update
2022-02-14 00:15:30 +00:00
Patrik Lindgren
543b49728a
Fix tradfri device name ( #66219 )
2022-02-10 08:19:59 +01:00
Patrik Lindgren
f8a84f0101
Add diagnostics for Tradfri platform ( #66092 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 22:05:33 +01:00
Patrik Lindgren
afd0005a31
Add sensor for filter time left on Tradfri fan platform ( #65877 )
...
* Add support for filter time left
* Fix test for fan platform
* Remove debug code
* Add unique id migration tool
* Convert to hours
* Fix tests
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add comment, check migration
* Refactor migration helper
* Refactor migration helper
* Move definition of new unique id
* Return after warning
* Add test for unique id migration
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 02:21:22 +01:00
GitHub Action
2da4d280b2
[ci skip] Translation update
2022-02-06 00:17:31 +00:00
Patrik Lindgren
daedbbb1ee
Bump pytradfri to 9.0.0 ( #65784 )
...
* Bump pytradfri to 8.1.0
* Bump to 9.0.0
* Bump manifest
2022-02-05 13:25:50 +01:00
Martin Hjelmare
3697f5611c
Fix tradfri coordinator error handling ( #65204 )
2022-02-01 09:09:51 -08:00
Martin Hjelmare
d0412d65ac
Remove stale tradfri devices ( #65218 )
2022-01-31 16:43:16 -08:00
GitHub Action
ca7d4234e1
[ci skip] Translation update
2022-01-31 00:14:28 +00:00
Patrik Lindgren
473abb1793
Flag Tradfri groups and YAML as deprecated ( #65226 )
2022-01-30 22:16:51 +01:00
GitHub Action
77ef86faee
[ci skip] Translation update
2022-01-30 00:14:21 +00:00
Patrik Lindgren
3ca1b2fc6e
Add air quality sensor for Tradfri air purifier ( #65070 )
...
* Add air quality sensor for Tradfri fan platform
* Refactor, use entity description
* Fix typo
* CHange init docstring
* Let lambda handle special case
* Remove unique id
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Refactor to constants, add mixin
* Rename lambda
* Update homeassistant/components/tradfri/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tradfri/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tradfri/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Replace lambda with function
* Refactor device init
* Remove fixture scope
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-29 23:55:05 +01:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json ( #65083 )
2022-01-28 13:37:53 -08:00
Patrik Lindgren
70321ed795
Add battery sensor for Tradfri blinds ( #65067 )
2022-01-27 17:47:47 +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
GitHub Action
47d3fb1dec
[ci skip] Translation update
2022-01-23 00:13:53 +00:00
GitHub Action
c6d481ca01
[ci skip] Translation update
2022-01-17 00:14:48 +00: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
Patrik Lindgren
66f1ac025d
Add test cases for Tradfri fan platform ( #64135 )
...
* Add test cases for Tradfri fan platform
* Remove line
2022-01-15 11:34:19 +01:00
Patrik Lindgren
b52a8ba37a
Bump pytradfri to 8.0.1 and fix fan preset mode "Auto" bug ( #63920 )
...
* Move util functions
* Fix errors
* Revert changes
* Fix tests
* Use self.async_set_percentage()
* Fix calculation functions and associated tests
* Handle case of 0
* Update tests/components/tradfri/test_util.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/tradfri/test_util.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/tradfri/test_util.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Handle case of 0
* Update homeassistant/components/tradfri/fan.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-14 04:01:24 +01:00
GitHub Action
d99548fc04
[ci skip] Translation update
2022-01-10 00:14:49 +00:00
Leah Oswald
ec508130d2
Add default mode 'auto' for tradfri starkvind air purifier on turn on ( #63641 )
...
* add default mode 'auto' for tradfri starkvind air purifier on turn on
This commits fixes the behaviour described in #60122 (purifier couldn't be
started via toggle switch). It adds 'auto' as default mode/fallback for
turning on the starkvind air purifier. This is now the same behaviour the
original app provides.
* Refactor code that set 'auto' as default value for tradfri starkvind on
turn on
2022-01-08 21:01:54 +01:00
Marc Mueller
ae6d9c229e
Use const imports [l-z] ( #63469 )
2022-01-05 18:21:20 +01:00
Marc Mueller
b0f72f59da
Use imports from core
( #63458 )
2022-01-05 14:55:38 +01:00
GitHub Action
8c8c7e91a2
[ci skip] Translation update
2021-12-25 00:13:29 +00:00
GitHub Action
babd753610
[ci skip] Translation update
2021-12-21 00:15:06 +00:00
Robert Hillis
357d91fb0e
Use enums in tradfri ( #62025 )
2021-12-16 13:07:33 +01:00
GitHub Action
eb345bfdf1
[ci skip] Translation update
2021-12-14 00:13:33 +00:00
GitHub Action
f75b325ab2
[ci skip] Translation update
2021-12-12 00:14:30 +00:00
GitHub Action
ecdb18eb0a
[ci skip] Translation update
2021-12-06 00:13:37 +00:00
Marc Mueller
b79b35abb5
Use platform enum (7) [T-Z] ( #60948 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-04 14:10:01 +01:00
GitHub Action
68ca0a05c8
[ci skip] Translation update
2021-12-04 00:13:16 +00:00
Martin Hjelmare
deae8dd07b
Bump pytradfri to 7.2.1 ( #60910 )
2021-12-03 15:30:09 +01:00