Skip to content

Commit

Permalink
move constant around
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Sep 25, 2024
1 parent da95db2 commit 2664eed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 0 additions & 8 deletions tests/components/evohome/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
SESSION_ID: Final = "F7181186..."
USERNAME: Final = "test_user@gmail.com"

CTL_MODE_LOOKUP = {
"Reset": "AutoWithReset",
"eco": "AutoWithEco",
"away": "Away",
"home": "DayOff",
"Custom": "Custom",
}

# The h-numbers refer to issues in HA's core repo
TEST_INSTALLS: Final = (
"minimal", # evohome(single zone, no DHW)
Expand Down
11 changes: 10 additions & 1 deletion tests/components/evohome/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@
from homeassistant.core import HomeAssistant

from .conftest import ctl_entity, setup_evohome
from .const import CTL_MODE_LOOKUP, TEST_INSTALLS
from .const import TEST_INSTALLS

if TYPE_CHECKING:
from homeassistant.components.evohome.climate import EvoController


CTL_MODE_LOOKUP = {
"Reset": "AutoWithReset",
"eco": "AutoWithEco",
"away": "Away",
"home": "DayOff",
"Custom": "Custom",
}


@pytest.mark.parametrize("install", TEST_INSTALLS)
async def test_evohome_ctl_svcs(
hass: HomeAssistant,
Expand Down

0 comments on commit 2664eed

Please sign in to comment.