Config entry and device for Coolmaster integration (#27925)
* Config entry and device for Coolmaster integration * Lint/isort/flake/etc... * Black formatting * Code review fixes * Config flow tests for coolmaster * Add pycoolmaster requirement to test * Remove port selection from Coolmaster config flow * Update config_flow.py * More idoimatic hash concat
This commit is contained in:
1 parent
b6fd191dc4
commit
1412862f2a
11 files changed
+265
-33
No files matched your search
@@ -0,0 +1,25 @@
|
||||
"""Constants for the Coolmaster integration."""
|
||||
|
||||
from homeassistant.components.climate.const import (
|
||||
HVAC_MODE_COOL,
|
||||
HVAC_MODE_DRY,
|
||||
HVAC_MODE_FAN_ONLY,
|
||||
HVAC_MODE_HEAT,
|
||||
HVAC_MODE_HEAT_COOL,
|
||||
HVAC_MODE_OFF,
|
||||
)
|
||||
|
||||
DOMAIN = "coolmaster"
|
||||
|
||||
DEFAULT_PORT = 10102
|
||||
|
||||
CONF_SUPPORTED_MODES = "supported_modes"
|
||||
|
||||
AVAILABLE_MODES = [
|
||||
HVAC_MODE_OFF,
|
||||
HVAC_MODE_HEAT,
|
||||
HVAC_MODE_COOL,
|
||||
HVAC_MODE_DRY,
|
||||
HVAC_MODE_HEAT_COOL,
|
||||
HVAC_MODE_FAN_ONLY,
|
||||
]
|
||||
Reference in new issue
Block a user