Add some constants back that were used to Flexit and Stiebel (#98042)

* Add some constants back that were used

* Update __init__.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
pull/98057/head
Joost Lekkerkerker 2023-08-08 18:41:47 +02:00 committed by GitHub
parent c78c2b7c3b
commit 466c5ce591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -16,8 +16,6 @@ from homeassistant.components.climate import (
from homeassistant.components.modbus import (
CALL_TYPE_REGISTER_HOLDING,
CALL_TYPE_REGISTER_INPUT,
CALL_TYPE_WRITE_REGISTER,
CONF_HUB,
DEFAULT_HUB,
ModbusHub,
get_hub,
@ -34,6 +32,9 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
CALL_TYPE_WRITE_REGISTER = "write_register"
CONF_HUB = "hub"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Optional(CONF_HUB, default=DEFAULT_HUB): cv.string,