Michael
844ccf461f
Remove unnecessary config schema definitions ( #123197 )
2024-08-05 17:44:14 +02:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards ( #73806 )
2022-07-09 17:27:42 +02:00
Franck Nijhof
c3d19f3827
Clean up accessing device_registry helpers via hass ( #72031 )
2022-05-17 12:22:15 -07: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
Martin Hjelmare
93247d7933
Use RequestError in tradfri ( #67101 )
2022-02-23 09:34:32 +01:00
Martin Hjelmare
d0412d65ac
Remove stale tradfri devices ( #65218 )
2022-01-31 16:43:16 -08:00
Patrik Lindgren
473abb1793
Flag Tradfri groups and YAML as deprecated ( #65226 )
2022-01-30 22:16:51 +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
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
jan iversen
06d29040b9
Catch connection errors that makes tradfri hang in startup ( #59368 )
2021-11-09 13:00:50 +01:00
jan iversen
2b68b9292c
Set tradfri entities to non-available when hub is not available ( #59278 )
...
* Set available when needed.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-08 18:41:25 +01:00
Marc Mueller
ff853b2d53
Use assignment expressions 19 ( #57968 )
2021-10-18 15:54:38 +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
Ville Skyttä
939fde0a50
ConfigType and async_setup/setup type hint improvements ( #54739 )
2021-08-18 13:22:05 +02:00
jan iversen
2d669a4613
Remove legacy code. ( #54452 )
2021-08-11 11:07:04 +02:00
jan iversen
adcbd8b115
Activate mypy for Trådfri ( #54416 )
...
* Activate mypy.
2021-08-11 08:31:52 +02:00
tkdrob
d1c4d0de49
Use bool annotations for setup entries ( #51166 )
2021-05-27 17:39:06 +02:00
J. Nick Koston
4b74c57285
Reduce config entry setup/unload boilerplate T-U ( #49786 )
2021-04-27 22:19:57 +02:00
jan iversen
6992e24263
Rename HomeAssistantType —> HomeAssistant, integrations t* - v* ( #49544 )
...
* Integration vizio: HomeAssistantType -> HomeAssistant.
* Integration velbus: HomeAssistantType -> HomeAssistant.
* Integration vacuum: HomeAssistantType -> HomeAssistant.
* Integration upnp: HomeAssistantType -> HomeAssistant.
* Integration upcloud: HomeAssistantType -> HomeAssistant.
* Integration twinkly: HomeAssistantType -> HomeAssistant.
* Integration tts: HomeAssistantType -> HomeAssistant.
* Integration tradfri: HomeAssistantType -> HomeAssistant.
* Integration traccar: HomeAssistantType -> HomeAssistant.
* Integration tplink: HomeAssistantType -> HomeAssistant.
2021-04-22 10:53:57 -04:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
tkdrob
66ecd2e0f2
Remove unused config_flows ( #46188 )
2021-02-08 08:32:24 +01:00
Paulus Schoutsen
45345ddc05
Improve handling of ignored entries ( #42148 )
2020-10-21 10:49:09 +02:00
Thomas Barnekov
8be3f2f2a5
Add automatic keep-alive for IKEA Trådfri ( #41778 )
...
* Added automatic keep-alive for IKEA Trådfri
* Don't shut down factory on keep-alive error
* Avoid keep-alive after shutdown
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-16 11:21:36 +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
Paulus Schoutsen
948ec80b6e
Bump pytradfri to 7.0.0, support multiple gateways ( #39609 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-09-03 14:47:14 +02:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Paulus Schoutsen
8f9467492d
Remove some passings of loop ( #34995 )
2020-04-30 21:34:51 -07:00
springstan
9fbb345ce0
Move imports to top for tradfri ( #29247 )
2019-11-30 21:23:39 -08:00
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Joakim Sørensen
b61218f90e
Tradfri config flow enhancements ( #28179 )
2019-10-24 21:31:58 +02:00
Patrik
0235487a22
Move top level imports ( #27597 )
2019-10-13 13:56:01 -07: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
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
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -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
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
Martin Hjelmare
58af332d21
Allow tradfri groups for new imported entries ( #17310 )
...
* Clean up leftover config schema option
* Allow import groups via new config yaml setup
* Fix and add test
* Add a test without groups for legacy import
* Change default import groups to False
* Fix I/O in test
2018-10-11 10:37:34 +02:00
Lewis Juggins
4218efddcd
Cleanly stop tradfri on shutdown ( #17114 )
...
* Tradfri shutdown fix
* Bump version
* Bump version
* Fix
* Derp
* Remove unnecessary shutdown event
2018-10-05 09:59:34 +02:00
Patrik
940d5fb2ee
Add basic support for Tradfri switches ( #17007 )
...
* Initial commit
* Sockets have been moved to separate component
* Sockets have been moved to separate component
* Fix const PLATFORM_SCHEMA
* Fix unique id
* Fix async_create_task
* Fix PLATFORM_SCHEMA
* Fix typo
* Remove pylint disable
2018-09-30 22:22:07 +02:00
Paulus Schoutsen
273a7af330
Prevent discovered Tradfri while already configured ( #16891 )
...
* Prevent discovered Tradfri while already configured
* Lint
2018-09-26 18:03:25 +02:00
Paulus Schoutsen
3e59ffb33a
Add tradfri device info ( #16768 )
2018-09-21 14:47:52 +02:00
Paulus Schoutsen
a1c524d372
Config flow tradfri ( #16665 )
...
* Fix comments
* Add config flow tests
* Fix Tradfri light tests
* Lint
* Remove import group from config flow
* fix stale comments
2018-09-19 21:21:43 +02:00