Add isort section (#49)

This commit is contained in:
Fabian Affolter 2018-07-03 09:47:00 +02:00 committed by GitHub
parent 9957ed41af
commit 36a01de7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,3 +72,12 @@ _LOGGER.error("No route to device: %s", self._resource)
Don't print out wrong API keys, tokens, usernames, or passwords. Don't print out wrong API keys, tokens, usernames, or passwords.
Also note that `_LOGGER.info` is reserved for the core, use `_LOGGER.debug` in anything else. Also note that `_LOGGER.info` is reserved for the core, use `_LOGGER.debug` in anything else.
### Ordering of imports
Instead of order the imports manually, use [`isort`](https://github.com/timothycrosley/isort).
```bash
$ pip3 install isort
$ isort homeassistant/components/sensor/fixer.py
```