Update codespell to 2.1.0 (#64661)

This commit is contained in:
Franck Nijhof 2022-01-21 22:05:24 +01:00 committed by GitHub
parent a26f008b6e
commit 7a2b699371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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

View File

@ -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):

View File

@ -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