mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Update codespell to 2.1.0 (#64661)
This commit is contained in:
parent
a26f008b6e
commit
7a2b699371
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user