diff --git a/custom_components/state_webhook/__init__.py b/custom_components/state_webhook/__init__.py index af72408..273cf02 100644 --- a/custom_components/state_webhook/__init__.py +++ b/custom_components/state_webhook/__init__.py @@ -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, diff --git a/custom_components/state_webhook/config_flow.py b/custom_components/state_webhook/config_flow.py index 7fb7d79..7dac343 100644 --- a/custom_components/state_webhook/config_flow.py +++ b/custom_components/state_webhook/config_flow.py @@ -14,7 +14,8 @@ SchemaFlowMenuStep, ) from homeassistant.helpers.selector import ( - BooleanSelector, EntitySelector, + BooleanSelector, + EntitySelector, EntitySelectorConfig, LabelSelector, LabelSelectorConfig, @@ -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, diff --git a/tests/test_init.py b/tests/test_init.py index 9631efe..e4839fd 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -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"