* Add support for melcloud Air-to-Water devices * Add water_heater entity for the water heater component. * Add individual climate entities for 0-2 supported radiator zones. * Add sensors for zone room temperatures, outdoor temperature and tank temperature. * Update .coveragerc * Use device_state_attributes Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Apply suggestions from code review Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Complete state_attributes -> device_state_attributes migration * Move constants to top of file * Remove async_turn_on/off * Drop mac from ATW unique_ids * Add MAC to device_info connections * Remove redundant ABC inheritance * Update homeassistant/components/melcloud/water_heater.py Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
14 lines
406 B
Python
14 lines
406 B
Python
"""Constants for the MELCloud Climate integration."""
|
|
from pymelcloud.const import UNIT_TEMP_CELSIUS, UNIT_TEMP_FAHRENHEIT
|
|
|
|
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
|
|
|
|
DOMAIN = "melcloud"
|
|
|
|
ATTR_STATUS = "status"
|
|
|
|
TEMP_UNIT_LOOKUP = {
|
|
UNIT_TEMP_CELSIUS: TEMP_CELSIUS,
|
|
UNIT_TEMP_FAHRENHEIT: TEMP_FAHRENHEIT,
|
|
}
|
|
TEMP_UNIT_REVERSE_LOOKUP = {v: k for k, v in TEMP_UNIT_LOOKUP.items()}
|