mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Bump ruff to 0.6.8 (#126842)
This commit is contained in:
parent
86dc7111cb
commit
77642b9e3d
@ -1,6 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.6.6
|
||||
rev: v0.6.8
|
||||
hooks:
|
||||
- id: ruff
|
||||
args:
|
||||
|
@ -68,7 +68,7 @@ class EsphomeLock(EsphomeEntity[LockInfo, LockEntityState], LockEntity):
|
||||
@convert_api_error_ha_error
|
||||
async def async_unlock(self, **kwargs: Any) -> None:
|
||||
"""Unlock the lock."""
|
||||
code = kwargs.get(ATTR_CODE, None)
|
||||
code = kwargs.get(ATTR_CODE)
|
||||
self._client.lock_command(self._key, LockCommand.UNLOCK, code)
|
||||
|
||||
@convert_api_error_ha_error
|
||||
|
@ -332,7 +332,7 @@ class LIFXManager:
|
||||
|
||||
elif service == SERVICE_EFFECT_MORPH:
|
||||
theme_name = kwargs.get(ATTR_THEME, "exciting")
|
||||
palette = kwargs.get(ATTR_PALETTE, None)
|
||||
palette = kwargs.get(ATTR_PALETTE)
|
||||
|
||||
if palette is not None:
|
||||
theme = Theme()
|
||||
@ -362,7 +362,7 @@ class LIFXManager:
|
||||
direction=kwargs.get(
|
||||
ATTR_DIRECTION, EFFECT_MOVE_DEFAULT_DIRECTION
|
||||
),
|
||||
theme_name=kwargs.get(ATTR_THEME, None),
|
||||
theme_name=kwargs.get(ATTR_THEME),
|
||||
power_on=kwargs.get(ATTR_POWER_ON, False),
|
||||
)
|
||||
for coordinator in coordinators
|
||||
@ -410,7 +410,7 @@ class LIFXManager:
|
||||
await self.effects_conductor.start(effect, bulbs)
|
||||
|
||||
elif service == SERVICE_EFFECT_SKY:
|
||||
palette = kwargs.get(ATTR_PALETTE, None)
|
||||
palette = kwargs.get(ATTR_PALETTE)
|
||||
if palette is not None:
|
||||
theme = Theme()
|
||||
for hsbk in palette:
|
||||
|
@ -461,7 +461,7 @@ class MotionTDBUDevice(MotionBaseDevice):
|
||||
async def async_set_absolute_position(self, **kwargs):
|
||||
"""Move the cover to a specific absolute position."""
|
||||
position = kwargs[ATTR_ABSOLUTE_POSITION]
|
||||
target_width = kwargs.get(ATTR_WIDTH, None)
|
||||
target_width = kwargs.get(ATTR_WIDTH)
|
||||
|
||||
async with self._api_lock:
|
||||
await self.hass.async_add_executor_job(
|
||||
|
@ -692,7 +692,7 @@ exclude_lines = [
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
required-version = ">=0.5.3"
|
||||
required-version = ">=0.6.8"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit
|
||||
|
||||
codespell==2.3.0
|
||||
ruff==0.6.6
|
||||
ruff==0.6.8
|
||||
yamllint==1.35.1
|
||||
|
@ -22,7 +22,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.4.15,source=/uv,target=/bin/uv \
|
||||
--no-cache \
|
||||
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
|
||||
-r /usr/src/homeassistant/requirements.txt \
|
||||
stdlib-list==0.10.0 pipdeptree==2.23.4 tqdm==4.66.5 ruff==0.6.6 \
|
||||
stdlib-list==0.10.0 pipdeptree==2.23.4 tqdm==4.66.5 ruff==0.6.8 \
|
||||
PyTurboJPEG==1.7.5 ha-ffmpeg==3.2.0 hassil==1.7.4 home-assistant-intents==2024.9.23 mutagen==1.47.0 pymicro-vad==1.0.1 pyspeex-noise==1.0.2
|
||||
|
||||
LABEL "name"="hassfest"
|
||||
|
Loading…
x
Reference in New Issue
Block a user