Skip to content

Commit

Permalink
Add some constants back that were used to Flexit and Stiebel (home-as…
Browse files Browse the repository at this point in the history
…sistant#98042)

* Add some constants back that were used

* Update __init__.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
  • Loading branch information
joostlek and emontnemery authored Aug 8, 2023
1 parent c78c2b7 commit 466c5ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/flexit/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from homeassistant.components.modbus import (
CALL_TYPE_REGISTER_HOLDING,
CALL_TYPE_REGISTER_INPUT,
CALL_TYPE_WRITE_REGISTER,
CONF_HUB,
DEFAULT_HUB,
ModbusHub,
get_hub,
Expand All @@ -34,6 +32,9 @@
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,
Expand Down

0 comments on commit 466c5ce

Please sign in to comment.