diff --git a/custom_components/mail_and_packages/diagnostics.py b/custom_components/mail_and_packages/diagnostics.py index ae4aaf9f..a951c2f4 100644 --- a/custom_components/mail_and_packages/diagnostics.py +++ b/custom_components/mail_and_packages/diagnostics.py @@ -16,8 +16,9 @@ REDACT_KEYS = {CONF_PASSWORD, CONF_USERNAME} + async def async_get_config_entry_diagnostics( - hass: HomeAssistant, config_entry: ConfigEntry + hass: HomeAssistant, config_entry: ConfigEntry # pylint: disable=unused-argument ) -> dict[str, Any]: """Return diagnostics for a config entry.""" diag: dict[str, Any] = {} @@ -26,8 +27,10 @@ async def async_get_config_entry_diagnostics( async def async_get_device_diagnostics( - hass: HomeAssistant, config_entry: ConfigEntry, device: DeviceEntry + hass: HomeAssistant, + config_entry: ConfigEntry, + device: DeviceEntry, # pylint: disable=unused-argument ) -> dict[str, Any]: """Return diagnostics for a device.""" coordinator = hass.data[DOMAIN][config_entry.entry_id][COORDINATOR] - return coordinator.data \ No newline at end of file + return coordinator.data diff --git a/requirements.txt b/requirements.txt index ccbc0efc..cd0978a2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -imageio -python-resize-image \ No newline at end of file +imageio==2.16.0 +python-resize-image==1.1.20 \ No newline at end of file diff --git a/requirements_format.txt b/requirements_format.txt index 1e6db1fb..a870154b 100644 --- a/requirements_format.txt +++ b/requirements_format.txt @@ -1,6 +1,6 @@ -black -isort -flake8 -pydocstyle -pylint -mypy \ No newline at end of file +black==22.1.0 +isort==5.10.1 +flake8==4.0.1 +pydocstyle==6.1.1 +pylint==2.12.2 +mypy==0.931 \ No newline at end of file diff --git a/requirements_test.txt b/requirements_test.txt index c08fdf47..1894a041 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,9 +1,11 @@ -r requirements.txt -av +pip>=21.0,<22.1 +av==8.1.0 aiohttp_cors -aioresponses -black -isort -pytest -pytest-cov -pytest-homeassistant-custom-component +aioresponses==0.7.3 +black==22.1.0 +isort==5.10.1 +pytest==7.0.1 +pytest-cov==3.0.0 +pytest-homeassistant-custom-component==0.6.12 +homeassistant==2022.2.6 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 1cb1727a..dea061dc 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,17 @@ [tox] skipsdist = true -envlist = py38, py39, py310, lint, mypy +envlist = py39, py310, lint, mypy skip_missing_interpreters = True ignore_basepython_conflict = True [gh-actions] python = - 3.8: py38, lint, mypy 3.9: py39, lint, mypy 3.10: py310 [testenv] pip_version = pip>=21.0,<22.1 -install_command = python -m pip install --use-deprecated legacy-resolver {opts} {packages} +install_command = python -m pip install {opts} {packages} commands = pytest --timeout=30 --cov=custom_components/mail_and_packages/ --cov-report=xml {posargs} deps =