hass-core/tests/components/switcher_kis/consts.py
Tomer Figenblat 9d8d8afa82 Added component named switcher_kis switcher water heater integration. (#22325)
* Added component named switcher_kis switcher water heater integration.

* Fixed conflicts.

* Updated requirements.

* Added manifest.json file and updated CODEOWNERS.

* Fixed requirements_all.txt.

* Better component tests.

* Removed unnecessary parameter from fixture function.

* Removed tests section from mypy.ini.

* Remove unused ENTITY_ID_FORMAT.

* Stop udp bridge when failed to setup the component.

* Replace DISCOVERY_ constants prefix with DATA_.

* Various change requests.

* Fixed constant name change remifications.

* Added explicit name to fixture.

* Various change requests.

* More various change requests.

* Added EventType for homeassistant.core.Event.

* Switched from event driven data distribution to dispatcher type plus clean-ups.

* Removed name and icon keys from the component configuration.

* Various change requests.

* Various change reqeusts and clean-ups.

* Removed unnecessary DEPENDENCIES constant from swith platform.

* Replaced configuration data guard with assert.

* Removed unused constants.

* Removed confusing type casting for mypy sake.

* Refactor property device_name to name.

* Removed None guard effecting mypy only.

* Removed unnecessary function from switch entity.

* Removed None guard in use by mypy only.

* Removed unused constant.

* Removed unnecessary context manager.

* Stopped messing around with mypy.ini.

* Referring to typing.TYPE_CHECKING for non-runtime imports.

* Added test requierment correctyly.

* Replaced queue.get() with queue.get_nowait() to avoid backing up intervals requests.

* Revert changes in mypy.ini.

* Changed attributes content to device properties instead of entity properties.

* Fixed typo in constant name.

* Remove unnecessary async keyword from callable.

* Waiting for tasks on event loop to end.

* Added callback decorator to callable.
2019-04-19 16:54:48 -05:00

26 lines
756 B
Python

"""Constants for the Switcher integration tests."""
from homeassistant.components.switcher_kis import (
CONF_DEVICE_ID, CONF_DEVICE_PASSWORD, CONF_PHONE_ID, DOMAIN)
DUMMY_AUTO_OFF_SET = '01:30:00'
DUMMY_DEVICE_ID = 'a123bc'
DUMMY_DEVICE_NAME = "Device Name"
DUMMY_DEVICE_PASSWORD = '12345678'
DUMMY_DEVICE_STATE = 'on'
DUMMY_ELECTRIC_CURRENT = 12.8
DUMMY_ICON = 'mdi:dummy-icon'
DUMMY_IP_ADDRESS = '192.168.100.157'
DUMMY_MAC_ADDRESS = 'A1:B2:C3:45:67:D8'
DUMMY_NAME = 'boiler'
DUMMY_PHONE_ID = '1234'
DUMMY_POWER_CONSUMPTION = 2780
DUMMY_REMAINING_TIME = '01:29:32'
MANDATORY_CONFIGURATION = {
DOMAIN: {
CONF_PHONE_ID: DUMMY_PHONE_ID,
CONF_DEVICE_ID: DUMMY_DEVICE_ID,
CONF_DEVICE_PASSWORD: DUMMY_DEVICE_PASSWORD
}
}