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