* make CoolMasteNet integration async * Apply suggestions from code review Co-authored-by: Chris Talkington <chris@talkingtontech.com> * Minor post-review tweaks * Apply suggestions from code review * Update homeassistant/components/coolmaster/__init__.py Co-authored-by: Chris Talkington <chris@talkingtontech.com>
28 lines
521 B
Python
28 lines
521 B
Python
"""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,
|
|
)
|
|
|
|
DATA_INFO = "info"
|
|
DATA_COORDINATOR = "coordinator"
|
|
|
|
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,
|
|
]
|