1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-11 15:52:20 +01:00
* Add black

Update pre commit

Update pre commit

add empty line

* Format with black
This commit is contained in:
Guillermo Ruffino
2021-03-07 16:03:16 -03:00
committed by GitHub
parent 2b60b0f1fa
commit 69879920eb
398 changed files with 21624 additions and 12644 deletions

View File

@@ -4,7 +4,6 @@ from esphome.const import CONF_PACKAGES
def _merge_package(full_old, full_new):
def merge(old, new):
# pylint: disable=no-else-return
if isinstance(new, dict):
@@ -30,8 +29,10 @@ def do_packages_pass(config: dict):
packages = config[CONF_PACKAGES]
with cv.prepend_path(CONF_PACKAGES):
if not isinstance(packages, dict):
raise cv.Invalid("Packages must be a key to value mapping, got {} instead"
"".format(type(packages)))
raise cv.Invalid(
"Packages must be a key to value mapping, got {} instead"
"".format(type(packages))
)
for package_name, package_config in packages.items():
with cv.prepend_path(package_name):