epenet
2699eb62bd
Rename DOMAIN_DATA HassKey constants to DATA_COMPONENT ( #126746 )
...
* Rename DOMAIN_DATA HassKey constant to DATA
* DATA -> DATA_COMPONENT
2024-09-25 15:53:58 +02:00
epenet
94df0bd5ab
Use HassKey in core components (d-z) ( #126324 )
...
* Use HassKey in core components (d-s)
* Add
* Undo light
* Undo device_tracker
* Undo notify
* Undo sensor
* Undo stt
* Improve
2024-09-21 13:10:14 +02:00
epenet
07c7bb8b2a
Use HOMEASSISTANT_DOMAIN alias for core DOMAIN ( #122760 )
2024-07-29 13:35:36 +02:00
J. Nick Koston
c615b52840
Refactor integration startup time to show wall clock time ( #113707 )
...
* Refactor setup time tracking to exclude time waiting on other operations
We now exclude the import time and th time waiting on
base platforms to setup from the setup times
* tweak
* tweak
* tweak
* tweak
* adjust
* fixes
* fixes
* preen
* preen
* tweak
* tweak
* adjust
* tweak
* reduce
* do not count integrtion platforms against their parent integration
* handle legacy tts platforms
* stt as well
* one more wait
* use the same pattern in all the legacy
* fix tts and stt legacy
* fix
* fix
* reduce
* preen
* entity comp does not wait for platforms
* scene blocks as well
* fix test
* test fixes
* coverage
* coverage
* coverage
* fix test
* Update tests/test_setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/test_setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* strip
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* remove complexity
* Apply suggestions from code review
* no longer works that way
* fixes
* fixes
* fixes
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-18 21:45:34 -04:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
J. Nick Koston
052d7d1e19
Fix scene integration doing blocking I/O in the event loop to import platforms ( #113391 )
2024-03-14 14:56:57 -10:00
J. Nick Koston
42527862e0
Migrate scene platform to use async_add_executor_job ( #113114 )
2024-03-11 15:01:30 -10:00
Marc Mueller
930a396712
Add empty line after module docstring [s] ( #112704 )
2024-03-08 14:33:51 +01:00
epenet
64988521bb
Make use of generic EntityComponent (part 2) ( #78494 )
2022-09-17 18:18:53 +02:00
epenet
abc87b5dfa
Improve type hints in scene ( #78347 )
2022-09-14 11:18:23 +02:00
J. Nick Koston
c9ac0b49f6
Prevent scene from restoring unavailable states ( #67836 )
2022-03-07 20:43:19 -08:00
Paulus Schoutsen
2a8797ae3f
Move scene and button restore to internal hook ( #65696 )
2022-02-04 10:43:06 -08:00
Franck Nijhof
3f7275a9c7
Give scenes last activated state ( #62673 )
2022-01-07 19:02:32 +01:00
epenet
00ec874389
Add init type hints [s] ( #63193 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:29:52 +01:00
Franck Nijhof
7947946793
Type entry setup/unload for entity components ( #51912 )
2021-06-17 10:10:26 +02:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
Marc Mueller
a3cd1854f6
Update typing 12 ( #48073 )
2021-03-18 14:31:38 +01:00
Franck Nijhof
5d5a110a20
None optional hass typing in base entity and notify ( #47528 )
2021-03-15 15:11:41 +01:00
Philip Allgaier
dde6305549
Cleanup unused loggers (components N-Z + tests) ( #41982 )
2020-10-16 21:24:08 -05:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter ( #34434 )
2020-04-20 18:07:50 -07:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Paulus Schoutsen
1f0f62de7f
Add unique IDs to automation/scenes ( #31150 )
...
* Add unique IDs to automation and scenes
* Fix typo
2020-01-26 23:01:35 -08:00
Bas Nijholt
76debf4c88
Sort imports according to PEP8 for scene ( #29750 )
2019-12-09 13:12:43 +01:00
Paulus Schoutsen
552fbda58b
Remove legacy reproduce state ( #28458 )
...
* Remove legacy reproduce state
* Fix imports
2019-11-04 11:12:04 +01:00
Paulus Schoutsen
f5bd0f29b4
Add scene.apply service ( #27298 )
...
* Add scene.apply service
* Use return value entity ID validator"
* Require entities field in service call
* Simplify scene service
2019-10-08 09:59:32 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
7a90808e52
Add service to reload scenes from configuration.yaml ( #25680 )
...
* Allow reloading scenes
* Update requirements
* address comments
* fix typing
* fix tests
* Update homeassistant/components/homeassistant/scene.py
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
* Address comments
2019-08-05 23:04:19 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Aaron Bach
ee7ec5f234
Add area support to scene service schemas ( #25438 )
2019-07-23 13:38:08 -06:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -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
Paulus Schoutsen
8213016eaf
Allow targeting areas in service calls ( #21472 )
...
* Allow targeting areas in service calls
* Lint + Type
* Address comments
2019-03-04 09:51:12 -08:00
yosilevy
e8b67fc19f
Scene validator fix ( #21362 )
2019-02-23 18:26:27 +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
8ea0a8d40b
RFC: Deprecate auto target all for services and introduce entity_id: * ( #19006 )
...
* Deprecate auto target all
* Match on word 'all'
2018-12-13 10:07:59 +01:00
cdce8p
dd45e99302
Remove service helper (4) ( #16892 )
...
* Update media_player
* Update lock
* Update notify
* Update remote
* Update scene
* Update vacuum
* Remove timer helpers
* Removed unused legacy helpers
2018-09-26 18:02:05 +02:00
Ville Skyttä
dbd0763f83
Grammar and spelling fixes ( #16065 )
2018-08-19 22:29:08 +02:00
Paulus Schoutsen
83d300fd11
Custom component loading cleanup ( #14211 )
...
* Clean up custom component loading
* Fix some tests
* Fix some stuff
* Make imports work again
* Fix tests
* Remove debug print
* Lint
2018-05-01 20:57:30 +02:00
Kane610
3fd4987baf
deCONZ allow unloading of config entry ( #14115 )
...
* Working but incomplete
* Remove events on unload
* Add unload test
* Fix failing sensor test
* Improve unload test
* Move DeconzEvent to init
* Fix visual under-indentation
2018-04-29 10:16:20 -04:00
Kane610
8a10fcd985
deCONZ use forward entry setup ( #13990 )
...
* Use forward entry setup with light platform
* Move sensor to forward entry setup
* Use forward entry setup with binary sensors
* Use forward entry setup with scene platform
* Remove import of unused functionality
* Move deconz setup in to setup entry
Create initial negative tests for setup entry
* Fix hound comment
* Improved tests
* Add test for scene platform
* Add test for binary sensor platform
* Add test for light platform
* Add test for light platform
* Add test for sensor platform
* Fix hound comment
* More asserts on sensor types
2018-04-23 12:00:16 -04:00
Julius Mittenzwei
3713dfe139
Removing asyncio.coroutine syntax from some components ( #12507 )
...
* Removing asyncio.coroutine syntax (first steps)
* merge conflict
* fixed small bug
* pylint
2018-02-24 10:24:33 -08:00
Paulus Schoutsen
d29bdddaa7
Add bind_hass to components ( #8502 )
...
* Add bind_hass to components
* Add bind_hass to group
2017-07-16 10:14:46 -07:00
Paulus Schoutsen
f43db3c615
Replace executor with async_add_job ( #7658 )
...
* Remove executor
* Lint
* Lint
* Fix tests
2017-05-26 08:28:07 -07:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Martin Hjelmare
7c614a6738
Add voluptuous config validation to scenes ( #6830 )
...
* Add platform schema to scene component and homeassistant platform.
* Clean up code and add constants.
* Add unit test and clean up tests.
2017-03-28 23:39:53 -07:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Pascal Vizeli
244cdf43d0
Async reduce coro ( #5001 )
...
* Asyncio coro reduce
* Replace comments
2016-12-26 14:10:23 +01:00
Paulus Schoutsen
84c89686a9
Update __init__.py
2016-12-02 09:13:39 -08:00
Pascal Vizeli
2e6a48ff5f
WIP: Migrate scene to async + homeassistant scene async ( #4665 )
...
* Migrate scene to async + homeassistant scene async
* fix lint
* Update state.py
* Fix tests
2016-12-01 21:38:12 -08:00
Jan Harkes
ad6f5d3b1d
Service validation for scene component.
2016-04-13 12:35:07 -04:00