* feat: add reconfigure * feat: add reconfigure step * fix: don't abort unique on reconfigure * fix: add success string * fix: improve reconfigure * fix: entry will never be none * fix: update ip in abort * fix: check unique id on reconfigure * feat: add test in case of new device * fix: fail reconfigure if mac changes * fix: abort instead of form * feat: use is, dont mock config flow * fix: implement comments
19 lines
496 B
Python
19 lines
496 B
Python
"""Constants for the MadVR tests."""
|
|
|
|
from homeassistant.const import CONF_HOST, CONF_PORT
|
|
|
|
MOCK_CONFIG = {
|
|
CONF_HOST: "192.168.1.1",
|
|
CONF_PORT: 44077,
|
|
}
|
|
|
|
MOCK_MAC = "00:11:22:33:44:55"
|
|
MOCK_MAC_NEW = "00:00:00:00:00:01"
|
|
|
|
TEST_CON_ERROR = ConnectionError("Connection failed")
|
|
TEST_IMP_ERROR = NotImplementedError("Not implemented")
|
|
|
|
TEST_FAILED_ON = "Failed to turn on device"
|
|
TEST_FAILED_OFF = "Failed to turn off device"
|
|
TEST_FAILED_CMD = "Failed to send command"
|
|
TEST_COMMAND = "test"
|