Update codespell to 2.1.0 (#64661)
This commit is contained in:
parent
a26f008b6e
commit
7a2b699371
4 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ repos:
|
||||||
- --quiet
|
- --quiet
|
||||||
files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$
|
files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
rev: v2.0.0
|
rev: v2.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -1057,7 +1057,7 @@ def _statistics_at_time(
|
||||||
table: type[Statistics | StatisticsShortTerm],
|
table: type[Statistics | StatisticsShortTerm],
|
||||||
start_time: datetime,
|
start_time: datetime,
|
||||||
) -> list | None:
|
) -> 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
|
# Fetch metadata for the given (or all) statistic_ids
|
||||||
if table == StatisticsShortTerm:
|
if table == StatisticsShortTerm:
|
||||||
base_query = QUERY_STATISTICS_SHORT_TERM
|
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)
|
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()
|
await wemo_discovery.discover_statics()
|
||||||
|
|
||||||
if config.get(CONF_DISCOVERY, DEFAULT_DISCOVERY):
|
if config.get(CONF_DISCOVERY, DEFAULT_DISCOVERY):
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
bandit==1.7.0
|
bandit==1.7.0
|
||||||
black==21.12b0
|
black==21.12b0
|
||||||
codespell==2.0.0
|
codespell==2.1.0
|
||||||
flake8-comprehensions==3.7.0
|
flake8-comprehensions==3.7.0
|
||||||
flake8-docstrings==1.6.0
|
flake8-docstrings==1.6.0
|
||||||
flake8-noqa==1.2.1
|
flake8-noqa==1.2.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue