hass-core/homeassistant/components/bsblan/const.py
Willem-Jan cf30895460
Add BSBLan Climate integration (#32375)
* Initial commit for BSBLan Climate component

The most basic climate functions work.

* Delete manifest 2.json

wrongly added to commit

* fix incorrect name

current_hvac_mode

* update coverage to exclude bsblan

* sorted and add configflow

* removed unused code, etc

* fix hvac, preset  mix up

now it sets hvac mode to none and preset to eco

* fix naming

* removed commented code and cleaned code that isn't needed

* Add test for the configflow

* Update requirements

fixing some issues in bsblan Lib

* Update coverage file to include configflow bsblan

* Fix hvac preset is not in hvac mode

rewrote how to handle presets.

* Add passkey option

My device had a passkey so I needed to push this functionality to do testing

* Update constants

include passkey and added some more for device indentification

* add passkey for configflow

* Fix use discovery_info instead of user_input

also added passkey

* Fix name

* Fix for discovery_info[CONF_PORT] is None

* Fix get value CONF_PORT

* Fix move translation to new location

* Fix get the right info

* Fix remove zeroconf and fix the code

* Add init for mockConfigEntry

* Fix removed zeroconfig and fix code

* Fix changed ClimateDevice to ClimatEntity

* Fix log error message

* Removed debug code

* Change name of device.

* Remove check

This is done in the configflow

* Remove period from logging message

* Update homeassistant/components/bsblan/strings.json

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add passkey

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-05-09 22:16:21 -04:00

26 lines
653 B
Python

"""Constants for the BSB-Lan integration."""
DOMAIN = "bsblan"
DATA_BSBLAN_CLIENT = "bsblan_client"
DATA_BSBLAN_TIMER = "bsblan_timer"
DATA_BSBLAN_UPDATED = "bsblan_updated"
ATTR_IDENTIFIERS = "identifiers"
ATTR_MODEL = "model"
ATTR_MANUFACTURER = "manufacturer"
ATTR_TARGET_TEMPERATURE = "target_temperature"
ATTR_INSIDE_TEMPERATURE = "inside_temperature"
ATTR_OUTSIDE_TEMPERATURE = "outside_temperature"
ATTR_STATE_ON = "on"
ATTR_STATE_OFF = "off"
CONF_DEVICE_IDENT = "device_identification"
CONF_CONTROLLER_FAM = "controller_family"
CONF_CONTROLLER_VARI = "controller_variant"
SENSOR_TYPE_TEMPERATURE = "temperature"
CONF_PASSKEY = "passkey"