mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Add laundrify integration (#65090)
* First version of laundrify integration * Code cleanup * Code cleanup after review #2 * Move coordinator to its own file * Save devices as dict and implement available prop as fn * Validate token on init, abort if already configured * Some more cleanup after review * Add strict type hints * Minor changes after code review * Remove OptionsFlow (use default poll interval instead) * Fix CODEOWNERS to pass hassfest job * Fix formatting to pass prettier job * Fix mypy typing error * Update internal device property after fetching data * Call parental update handler and remove obsolete code * Add coordinator tests and fix some config flow tests * Refactor tests * Refactor fixtures * Device unavailable if polling fails
This commit is contained in:
11
tests/components/laundrify/const.py
Normal file
11
tests/components/laundrify/const.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""Constants for the laundrify tests."""
|
||||
|
||||
from homeassistant.const import CONF_CODE
|
||||
|
||||
VALID_AUTH_CODE = "999-001"
|
||||
VALID_ACCESS_TOKEN = "validAccessToken1234"
|
||||
VALID_ACCOUNT_ID = "1234"
|
||||
|
||||
VALID_USER_INPUT = {
|
||||
CONF_CODE: VALID_AUTH_CODE,
|
||||
}
|
||||
Reference in New Issue
Block a user