From 60345d407c0fa503f28681c05d98a354fe387ec6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 Jan 2024 14:40:56 +0100 Subject: [PATCH] Bump github/codeql-action from 3.23.1 to 3.23.2 (#165) * Bump github/codeql-action from 3.23.1 to 3.23.2 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.23.1 to 3.23.2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v3.23.1...v3.23.2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/codeql-analysis.yml | 6 +++--- custom_components/ecotrend_ista/__init__.py | 2 +- custom_components/ecotrend_ista/config_flow.py | 4 ++-- custom_components/ecotrend_ista/const_schema.py | 2 +- custom_components/ecotrend_ista/coordinator.py | 4 ++-- custom_components/ecotrend_ista/sensor.py | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7d44ce2..db70fad 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,7 +43,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v3.23.1 + uses: github/codeql-action/init@v3.23.2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -54,7 +54,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v3.23.1 + uses: github/codeql-action/autobuild@v3.23.2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -68,6 +68,6 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3.23.1 + uses: github/codeql-action/analyze@v3.23.2 with: category: "/language:${{matrix.language}}" diff --git a/custom_components/ecotrend_ista/__init__.py b/custom_components/ecotrend_ista/__init__.py index 23d7bec..3228c93 100644 --- a/custom_components/ecotrend_ista/__init__.py +++ b/custom_components/ecotrend_ista/__init__.py @@ -3,12 +3,12 @@ import logging +import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType -import voluptuous as vol from .const import DATA_HASS_CONFIG, DOMAIN from .const_schema import DEFAULT_DATA_SCHEMA diff --git a/custom_components/ecotrend_ista/config_flow.py b/custom_components/ecotrend_ista/config_flow.py index 472634b..2af0b25 100644 --- a/custom_components/ecotrend_ista/config_flow.py +++ b/custom_components/ecotrend_ista/config_flow.py @@ -6,6 +6,8 @@ from types import MappingProxyType from typing import Any +import requests +import voluptuous as vol from homeassistant import config_entries, core from homeassistant.const import CONF_EMAIL, CONF_PASSWORD from homeassistant.data_entry_flow import FlowResult @@ -16,8 +18,6 @@ ) from pyecotrend_ista.exception_classes import LoginError from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta -import requests -import voluptuous as vol from .const import CONF_MFA, CONF_UPDATE_INTERVAL, CONF_URL, DOMAIN, MANUFACTURER from .const_schema import DATA_SCHEMA_EMAIL, URL_SELECTOR diff --git a/custom_components/ecotrend_ista/const_schema.py b/custom_components/ecotrend_ista/const_schema.py index 76fe48c..aec0e9e 100644 --- a/custom_components/ecotrend_ista/const_schema.py +++ b/custom_components/ecotrend_ista/const_schema.py @@ -1,6 +1,7 @@ """Const schema for ista EcoTrend Version 2.""" from __future__ import annotations +import voluptuous as vol from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_SCAN_INTERVAL from homeassistant.helpers.selector import ( NumberSelector, @@ -14,7 +15,6 @@ TextSelectorConfig, TextSelectorType, ) -import voluptuous as vol from .const import ( CONF_MFA, diff --git a/custom_components/ecotrend_ista/coordinator.py b/custom_components/ecotrend_ista/coordinator.py index 14d127f..78ead83 100644 --- a/custom_components/ecotrend_ista/coordinator.py +++ b/custom_components/ecotrend_ista/coordinator.py @@ -2,18 +2,18 @@ from __future__ import annotations import datetime -from datetime import timedelta import json import logging import os +from datetime import timedelta from typing import Any +import requests from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from pyecotrend_ista.helper_object_de import CustomRaw from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta -import requests from .config_flow import login_account from .const import CONF_UPDATE_INTERVAL, DOMAIN diff --git a/custom_components/ecotrend_ista/sensor.py b/custom_components/ecotrend_ista/sensor.py index 12999af..ba433e2 100644 --- a/custom_components/ecotrend_ista/sensor.py +++ b/custom_components/ecotrend_ista/sensor.py @@ -1,9 +1,9 @@ """Support for reading status from ecotren-ists.""" from __future__ import annotations -from collections.abc import Callable import datetime import logging +from collections.abc import Callable from typing import Any, cast from homeassistant.components.sensor import RestoreSensor, SensorEntity