From ce1077934aeee92cc1d096394e9932abcc82f667 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 8 Aug 2023 17:38:38 +0200 Subject: [PATCH] Move all used modbus constants to Stiebel (#98044) --- homeassistant/components/stiebel_eltron/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/stiebel_eltron/__init__.py b/homeassistant/components/stiebel_eltron/__init__.py index 84a39e3c875..13ca12f482e 100644 --- a/homeassistant/components/stiebel_eltron/__init__.py +++ b/homeassistant/components/stiebel_eltron/__init__.py @@ -5,11 +5,6 @@ import logging from pystiebeleltron import pystiebeleltron import voluptuous as vol -from homeassistant.components.modbus import ( - CONF_HUB, - DEFAULT_HUB, - DOMAIN as MODBUS_DOMAIN, -) from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import discovery @@ -17,6 +12,9 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.typing import ConfigType from homeassistant.util import Throttle +CONF_HUB = "hub" +DEFAULT_HUB = "modbus_hub" +MODBUS_DOMAIN = "modbus" DOMAIN = "stiebel_eltron" CONFIG_SCHEMA = vol.Schema(