Skip to content
Open
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
5 changes: 3 additions & 2 deletions anthemav/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1401,9 +1401,10 @@ def input_number(self) -> int:
def input_number(self, number: int):
if 1 <= number <= 99:
self._avr.log.debug(f"Switching input to {number} for zone {self._zone}")
# Don't query the input right after the command: the MRX 310 rejects
# an input change if another command arrives while it is switching.
# The receiver echoes the new input by itself, which updates the state.
self.command(f"INP{number}")
# Query to make sure it actually changes
self.query("INP")

@property
def input_name(self) -> str:
Expand Down