Skip to content

Commit

Permalink
v0.1.27
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Johnson <ben@binarylogic.com>
  • Loading branch information
binarylogic committed Apr 12, 2024
1 parent 0ee1920 commit 25f9faf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion trinnov_altitude/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
log_format = "[L %(lineno)s - %(funcName)5s() ] %(message)s"
logging.basicConfig(level=level, format=log_format)

__version__ = "0.1.26"
__version__ = "0.1.27"
12 changes: 6 additions & 6 deletions trinnov_altitude/trinnov_altitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections.abc import Callable, Set
import logging
import re
from typing import TypeAlias
from typing import Dict, TypeAlias
from wakeonlan import send_magic_packet

from trinnov_altitude import const, exceptions, messages
Expand Down Expand Up @@ -83,9 +83,9 @@ def __init__(
self.id: str | None = None
self.mute: bool | None = None
self.preset: str | None = None
self.presets: dict = {}
self.presets: Dict[int, str] = {}
self.source: str | None = None
self.sources: dict = {}
self.sources: Dict[int, str] = {}
self.upmixer: str | None = None
self.version: str | None = None
self.volume: float | None = None
Expand Down Expand Up @@ -448,14 +448,14 @@ async def preset_get(self, timeout: int | float | None = USE_DEFAULT_TIMEOUT):
"""
await self._write("get_current_preset", timeout)

async def preset_load(
async def preset_set(
self, id: int, timeout: int | float | None = USE_DEFAULT_TIMEOUT
):
"""
Load the preset identified by `id`. Preset `0` is the built-in preset and
Set the preset identified by `id`. Preset `0` is the built-in preset and
presets >= `1` are user defined presets.
"""
await self._write("bypass 2", timeout)
await self._write(f"loadp {id}", timeout)

async def quick_optimized_off(
self, timeout: int | float | None = USE_DEFAULT_TIMEOUT
Expand Down

0 comments on commit 25f9faf

Please sign in to comment.