diff --git a/.github/workflows/validate_python.yml b/.github/workflows/validate_python.yml index 0b405d6..896a2a8 100644 --- a/.github/workflows/validate_python.yml +++ b/.github/workflows/validate_python.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.7.4 + python-version: 3.7.17 architecture: x64 - name: Checkout PyTorch uses: actions/checkout@main diff --git a/components/nspanel_ha_blueprint/__init__.py b/components/nspanel_ha_blueprint/__init__.py index 4753134..9ba0e44 100644 --- a/components/nspanel_ha_blueprint/__init__.py +++ b/components/nspanel_ha_blueprint/__init__.py @@ -11,8 +11,8 @@ CONFIG_SCHEMA = cv.All( cv.Schema({}), ) -@coroutine_with_priority(1.0) +@coroutine_with_priority(1.0) async def to_code(config): cg.add_define("USE_NSPANEL_HA_BLUEPRINT") cg.add_global(nspanel_ha_blueprint_ns.using) diff --git a/components/nspanel_ha_blueprint_upload_tft/__init__.py b/components/nspanel_ha_blueprint_upload_tft/__init__.py index e521bf0..72a8c19 100644 --- a/components/nspanel_ha_blueprint_upload_tft/__init__.py +++ b/components/nspanel_ha_blueprint_upload_tft/__init__.py @@ -5,14 +5,16 @@ from esphome.core import coroutine_with_priority CODEOWNERS = ["@edwardtfn"] -nspanel_ha_blueprint_upload_tft_ns = cg.esphome_ns.namespace('nspanel_ha_blueprint_upload_tft') +nspanel_ha_blueprint_upload_tft_ns = cg.esphome_ns.namespace( + 'nspanel_ha_blueprint_upload_tft' +) CONFIG_SCHEMA = cv.All( cv.Schema({}), ) -@coroutine_with_priority(1.0) +@coroutine_with_priority(1.0) async def to_code(config): cg.add_define("USE_NSPANEL_HA_BLUEPRINT_UPLOAD_TFT") cg.add_global(nspanel_ha_blueprint_upload_tft_ns.using)