mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use core constants for plugwise (#46414)
This commit is contained in:
parent
9b7c39d20b
commit
0d2f5cf7ed
@ -19,12 +19,7 @@ from homeassistant.core import callback
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.typing import DiscoveryInfoType
|
||||
|
||||
from .const import ( # pylint:disable=unused-import
|
||||
DEFAULT_PORT,
|
||||
DEFAULT_SCAN_INTERVAL,
|
||||
DOMAIN,
|
||||
ZEROCONF_MAP,
|
||||
)
|
||||
from .const import DEFAULT_PORT, DEFAULT_SCAN_INTERVAL, DOMAIN, ZEROCONF_MAP
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -152,7 +147,6 @@ class PlugwiseConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
||||
async def async_step_user(self, user_input=None):
|
||||
"""Handle the initial step."""
|
||||
|
||||
# PLACEHOLDER USB vs Gateway Logic
|
||||
return await self.async_step_user_gateway()
|
||||
|
||||
|
@ -22,7 +22,6 @@ DEFAULT_SCAN_INTERVAL = {"power": 10, "stretch": 60, "thermostat": 60}
|
||||
DEFAULT_TIMEOUT = 60
|
||||
|
||||
# Configuration directives
|
||||
CONF_BASE = "base"
|
||||
CONF_GAS = "gas"
|
||||
CONF_MAX_TEMP = "max_temp"
|
||||
CONF_MIN_TEMP = "min_temp"
|
||||
|
@ -203,7 +203,6 @@ class SmileGateway(CoordinatorEntity):
|
||||
@property
|
||||
def device_info(self) -> Dict[str, any]:
|
||||
"""Return the device information."""
|
||||
|
||||
device_information = {
|
||||
"identifiers": {(DOMAIN, self._dev_id)},
|
||||
"name": self._entity_name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user