mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 18:36:29 +00:00
Remove ordering imports section in development guidelines (#2355)
This commit is contained in:
parent
63d0a6f2f8
commit
9504fa4d92
@ -41,15 +41,6 @@ _LOGGER.error("No route to device: %s", self._resource)
|
||||
Do not print out API keys, tokens, usernames or passwords (even if they are wrong).
|
||||
Also note that `_LOGGER.info` is reserved for the core, use `_LOGGER.debug` for anything else.
|
||||
|
||||
### Ordering of imports
|
||||
|
||||
Instead of ordering the imports manually, use [`isort`](https://github.com/PyCQA/isort).
|
||||
|
||||
```shell
|
||||
pip3 install isort
|
||||
isort homeassistant/components/sensor/fixer.py
|
||||
```
|
||||
|
||||
### Use new style string formatting
|
||||
|
||||
Prefer [f-strings](https://docs.python.org/3/reference/lexical_analysis.html#f-strings) over `%` or `str.format`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user