Bas Nijholt
588409c784
Fix isort problem in homeassistant/requirements.py ( #33828 )
2020-04-08 12:48:20 -07:00
Paulus Schoutsen
173c276c5c
Lint
2020-04-08 12:03:56 -07:00
Jason Cheatham
3b246fb40a
Load integrations with requirements in device_automation ( #33714 )
...
* Load integrations with requirements in device_automation
- Split cached loader behavior out of async_get_integration
- Use cached loader for both async_get_integration and
async_get_integration_with_requirements
- Use async_get_integration_with_requirements for device_automation
resolves #33104
* Duplicate caching logic in requirements, remove loader mods
* Update homeassistant/requirements.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-04-08 11:42:15 -07:00
Ville Skyttä
221d5205e4
Upgrade mypy to 0.770, tighten config a bit ( #32715 )
...
* Upgrade mypy to 0.770, related cleanups
https://mypy-lang.blogspot.com/2020/03/mypy-0770-released.html
* Clean up config and make it a notch stricter, address findings
2020-03-12 11:52:20 +01:00
Bas Nijholt
004af97699
Sort imports for requirements.py and its test using isort ( #29836 )
...
Unblocks https://github.com/home-assistant/home-assistant/pull/29739
2019-12-11 12:12:06 +01:00
Paulus Schoutsen
27244e29c4
Install discovery requirements if used ( #29795 )
...
* Install discovery requirements if used
* Update loader.py
* Fix types
2019-12-10 09:24:49 +01:00
Bas Nijholt
67c56c860d
Sort imports according to PEP8 for 'homeassistant' folder ( #29789 )
...
Components are already done
2019-12-09 16:42:10 +01:00
Paulus Schoutsen
ec8ea02273
Fix recursion
2019-12-05 10:40:05 -08:00
Paulus Schoutsen
50affdf953
Also install after_deps ( #28453 )
2019-11-01 17:21:50 -07:00
Paulus Schoutsen
631a819bd1
Fix check config ( #28393 )
2019-10-31 11:39:26 -07:00
Franck Nijhof
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Joakim Plate
d1b9ebc7b2
Integration requirement check refactor ( #25626 )
...
* Factor out code getting requirements for integration
* Have process requirements raise an exception
* One more lint fix
* Blackify
* Catch new exception
* Let RequirementsNotFound be a HomeAssistantError
* Correct another test
* Split catching of exceptions and avoid complete log
2019-08-07 15:35:50 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Pascal Vizeli
bf52aa8ccc
Create progress file for pip installs ( #24297 )
...
* Create progress file for pip installs
* fix dedlock
* unflacky test
* Address comments
* Lint
* Types
2019-06-04 11:04:20 -07:00
Paulus Schoutsen
276ab191b5
Do not use the cache dir for PIP installs ( #24233 )
2019-06-01 10:04:12 +02:00
Pascal Vizeli
d9852bc75d
Support Hass.io wheels / docker env ( #24175 )
...
* Support Hass.io wheels / docker env
* address comments
* fix lint
2019-05-29 15:30:09 -07:00
Paulus Schoutsen
179fb0f3b5
Use importlib metadata to check installed packages ( #24114 )
...
* Use importlib metadata
* Fix script
* Remove unused import
* Update requirements"
2019-05-26 11:58:42 -07: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
09dc4d663d
Improve package loadable ( #16237 )
...
* Add caching to package loadable
* Fix tests
* Improve package loadable
* Lint
* Typing
2018-08-28 12:52:18 +02:00
Ville Skyttä
dc01b17260
Some typing related fixes ( #15899 )
...
* Fix FlowManager.async_init handler type
It's not a Callable, but typically a key pointing to one in a dict.
* Mark pip_kwargs return type hint as Any-valued dict
install_package takes other than str args too.
2018-08-09 22:53:12 +02:00
Andrey
140a874917
Add typing to homeassistant/*.py and homeassistant/util/ ( #15569 )
...
* Add typing to homeassistant/*.py and homeassistant/util/
* Fix wrong merge
* Restore iterable in OrderedSet
* Fix tests
2018-07-23 10:24:39 +02:00
Paulus Schoutsen
38af04c6ce
Reinstate our old virtual env check in favor of pip ( #12932 )
2018-03-05 15:51:37 -08:00
Julius Mittenzwei
16cb7388ee
Removing asyncio.coroutine syntax from HASS core ( #12509 )
...
* changed asyncio.coroutine syntax to new async def/await
* removed py34 from tox environment
* reverted some changes within entity.py
* -
* reverted changes within bootstrap.py
* reverted changes within discovery.py
* switched decorators
* Reverted change within aiohttp_client.py
* reverted change within logging.py
* switched decorators
* Await lock properly
* removed asyncio.coroutine from test
2018-02-25 03:38:46 -08:00
Paulus Schoutsen
ec1c395f09
Extract requirements ( #12051 )
2018-01-30 12:30:47 +01:00