Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions profile_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
MODEL_LAYOUTS: dict[str, dict[str, tuple[int, int]]] = {
# Stream Deck (Original)
"20GBA9901": {KEYPAD: (5, 3)},
# Stream Deck + XL (32 keys, 6 dials with 1200x100 touchstrip)
"20GBX9901": {KEYPAD: (8, 4), ENCODER: (6, 1)},
# Stream Deck + XL (36 keys, 6 dials with 1200x100 touchstrip)
"20GBX9901": {KEYPAD: (9, 4), ENCODER: (6, 1)},
# Emulator used by the Elgato desktop app
"UI Stream Deck": {KEYPAD: (4, 2)},
}
Expand Down
6 changes: 3 additions & 3 deletions tests/test_profile_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def test_read_page_requires_locator(sample_profiles_v3: Path, tmp_path: Path) ->

@pytest.fixture
def sample_profiles_plus_xl(tmp_path: Path) -> Path:
"""Profile shaped like a Stream Deck + XL: Keypad 8x4 + Encoder 6x1 on the same page."""
"""Profile shaped like a Stream Deck + XL: Keypad 9x4 + Encoder 6x1 on the same page."""

profiles_dir = tmp_path / "ProfilesV3"
profile_dir = profiles_dir / "PLUSXL.sdProfile"
Expand Down Expand Up @@ -449,9 +449,9 @@ def test_read_page_returns_both_controllers(sample_profiles_plus_xl: Path, tmp_p

page = manager.read_page(profile_name="Plus XL", page_index=0)

assert page["layout"] == {"columns": 8, "rows": 4}
assert page["layout"] == {"columns": 9, "rows": 4}
assert page["layouts"] == {
"keypad": {"columns": 8, "rows": 4},
"keypad": {"columns": 9, "rows": 4},
"encoder": {"columns": 6, "rows": 1},
}
controllers = {button["controller"] for button in page["buttons"]}
Expand Down
Loading