Skip to content

Commit

Permalink
fix: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Dec 22, 2024
1 parent 2051867 commit 3af6aba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion custom_components/state_webhook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
CONF_ENTITY_ID_GLOB,
CONF_ENTITY_LABELS,
CONF_FILTER_MODE,
CONF_INCLUDE_ATTRIBUTES, CONF_WEBHOOK_AUTH_HEADER,
CONF_INCLUDE_ATTRIBUTES,
CONF_WEBHOOK_AUTH_HEADER,
CONF_WEBHOOK_HEADERS,
CONF_WEBHOOK_URL,
FilterMode,
Expand Down
6 changes: 4 additions & 2 deletions custom_components/state_webhook/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
SchemaFlowMenuStep,
)
from homeassistant.helpers.selector import (
BooleanSelector, EntitySelector,
BooleanSelector,
EntitySelector,
EntitySelectorConfig,
LabelSelector,
LabelSelectorConfig,
Expand All @@ -31,7 +32,8 @@
CONF_ENTITY_ID,
CONF_ENTITY_ID_GLOB,
CONF_ENTITY_LABELS,
CONF_INCLUDE_ATTRIBUTES, CONF_WEBHOOK_AUTH_HEADER,
CONF_INCLUDE_ATTRIBUTES,
CONF_WEBHOOK_AUTH_HEADER,
CONF_WEBHOOK_HEADERS,
CONF_WEBHOOK_URL,
DOMAIN,
Expand Down
3 changes: 1 addition & 2 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from homeassistant.helpers.entity_registry import RegistryEntry
from pytest_homeassistant_custom_component.common import MockConfigEntry, mock_registry

from custom_components.state_webhook import CONF_ENTITY_DOMAIN, CONF_INCLUDE_ATTRIBUTES, CONF_WEBHOOK_URL, \
async_setup_entry, build_payload
from custom_components.state_webhook import CONF_ENTITY_DOMAIN, CONF_INCLUDE_ATTRIBUTES, CONF_WEBHOOK_URL, async_setup_entry, build_payload
from custom_components.state_webhook.const import DOMAIN

DEFAULT_WEBHOOK_URL = "https://example.com/webhook"
Expand Down

0 comments on commit 3af6aba

Please sign in to comment.