diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c48ac076b37..8209bc9c51c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - --quiet files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$ - repo: https://github.com/codespell-project/codespell - rev: v2.0.0 + rev: v2.1.0 hooks: - id: codespell args: diff --git a/homeassistant/components/recorder/statistics.py b/homeassistant/components/recorder/statistics.py index 319431171f0..347722be0a5 100644 --- a/homeassistant/components/recorder/statistics.py +++ b/homeassistant/components/recorder/statistics.py @@ -1057,7 +1057,7 @@ def _statistics_at_time( table: type[Statistics | StatisticsShortTerm], start_time: datetime, ) -> list | None: - """Return last known statics, earlier than start_time, for the metadata_ids.""" + """Return last known statistics, earlier than start_time, for the metadata_ids.""" # Fetch metadata for the given (or all) statistic_ids if table == StatisticsShortTerm: base_query = QUERY_STATISTICS_SHORT_TERM diff --git a/homeassistant/components/wemo/__init__.py b/homeassistant/components/wemo/__init__.py index b847e2ac855..3b08a39f2ce 100644 --- a/homeassistant/components/wemo/__init__.py +++ b/homeassistant/components/wemo/__init__.py @@ -125,7 +125,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, async_stop_wemo) ) - # Need to do this at least once in case statics are defined and discovery is disabled + # Need to do this at least once in case statistics are defined and discovery is disabled await wemo_discovery.discover_statics() if config.get(CONF_DISCOVERY, DEFAULT_DISCOVERY): diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index ea979ff024b..2e37b2175ba 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -2,7 +2,7 @@ bandit==1.7.0 black==21.12b0 -codespell==2.0.0 +codespell==2.1.0 flake8-comprehensions==3.7.0 flake8-docstrings==1.6.0 flake8-noqa==1.2.1