diff --git a/homeassistant/components/hegel/config_flow.py b/homeassistant/components/hegel/config_flow.py index 8f40ee2fe45..b8b41632aaa 100644 --- a/homeassistant/components/hegel/config_flow.py +++ b/homeassistant/components/hegel/config_flow.py @@ -9,10 +9,10 @@ import voluptuous as vol from yarl import URL from homeassistant.config_entries import ConfigFlow, ConfigFlowResult -from homeassistant.const import CONF_HOST +from homeassistant.const import CONF_HOST, CONF_MODEL from homeassistant.helpers.service_info.ssdp import SsdpServiceInfo -from .const import CONF_MODEL, DEFAULT_PORT, DOMAIN, MODEL_INPUTS +from .const import DEFAULT_PORT, DOMAIN, MODEL_INPUTS _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hegel/const.py b/homeassistant/components/hegel/const.py index 587f380f4bf..e77b563c6f4 100644 --- a/homeassistant/components/hegel/const.py +++ b/homeassistant/components/hegel/const.py @@ -3,8 +3,6 @@ DOMAIN = "hegel" DEFAULT_PORT = 50001 -# pylint: disable-next=home-assistant-duplicate-const -CONF_MODEL = "model" CONF_MAX_VOLUME = "max_volume" # 1.0 means amp's internal max HEARTBEAT_TIMEOUT_MINUTES = 3 diff --git a/homeassistant/components/hegel/media_player.py b/homeassistant/components/hegel/media_player.py index 395c1585df1..0b58ad943c5 100644 --- a/homeassistant/components/hegel/media_player.py +++ b/homeassistant/components/hegel/media_player.py @@ -20,6 +20,7 @@ from homeassistant.components.media_player import ( MediaPlayerEntityFeature, MediaPlayerState, ) +from homeassistant.const import CONF_MODEL from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError, ServiceValidationError from homeassistant.helpers.device_registry import DeviceInfo @@ -27,7 +28,7 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.event import async_track_time_interval from . import HegelConfigEntry -from .const import CONF_MODEL, DOMAIN, HEARTBEAT_TIMEOUT_MINUTES, MODEL_INPUTS +from .const import DOMAIN, HEARTBEAT_TIMEOUT_MINUTES, MODEL_INPUTS _LOGGER = logging.getLogger(__name__) diff --git a/tests/components/hegel/test_config_flow.py b/tests/components/hegel/test_config_flow.py index 7f2c2a880c5..8bf1b8489f9 100644 --- a/tests/components/hegel/test_config_flow.py +++ b/tests/components/hegel/test_config_flow.py @@ -4,9 +4,9 @@ from unittest.mock import MagicMock import pytest -from homeassistant.components.hegel.const import CONF_MODEL, DOMAIN +from homeassistant.components.hegel.const import DOMAIN from homeassistant.config_entries import SOURCE_SSDP, SOURCE_USER -from homeassistant.const import CONF_HOST +from homeassistant.const import CONF_HOST, CONF_MODEL from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResultType from homeassistant.helpers.service_info.ssdp import SsdpServiceInfo