Replaced a bunch of log by log_info

This commit is contained in:
Pierre committed 2026-09-27 22:55:17 +02:00
1 parent 098e95b439
commit 533785151e
4 files changed
+27 -27

No files matched your search

+11 -11
View File
@@ -268,7 +268,7 @@ class Vertex2(SmartObject):
for sensor in self.allm_sensors.values():
sensor.set_state(state='unavailable')
self.audio_out_signal_sensor.set_state(state='unavailable')
self.log(f'Vertex2 IP INTERRUPT unavailable: {error}', level='WARNING')
self.log_warning(f'Vertex2 IP INTERRUPT unavailable: {error}')
interrupt_stop.wait(5)
def trigger_tx0_stuck_workaround(self, kwargs):
@@ -323,7 +323,7 @@ class Vertex2(SmartObject):
def on_input_selected_sensor_change(self,entity, attribute, old, new, kwargs):
if old != new:
self.log(f"input_select switch from {old} to {new}")
self.log_info(f"input_select switch from {old} to {new}")
if old in self.input_names:
input_id = self.input_names[old]
config = self.args['input_config'][input_id]
@@ -348,7 +348,7 @@ class Vertex2(SmartObject):
def select_input(self,input_selected):
try: input_value = int(input_selected)
except ValueError: input_value = self.input_names[input_selected]
self.log(f"Switching to input {input_value}")
self.log_info(f"Switching to input {input_value}")
self.send_cmd("insel",f"{input_value} {input_value}")
def on_update_output_selection(self):
@@ -391,7 +391,7 @@ class Vertex2(SmartObject):
)
self._refresh_selected_output_signal()
self.log(f"Selecting TX{output_index} as the active output")
self.log_info(f"Selecting TX{output_index} as the active output")
self.apply_output_audio_settings(output_index)
if output_index == 0:
self.force_tx1_plus5(False)
@@ -434,21 +434,21 @@ class Vertex2(SmartObject):
f'{r.text[:160]!r}'
)
except (Timeout,ConnectionError):
self.log(f"{request} is unreachable", level = "WARNING")
self.log_warning(f"{request} is unreachable")
def mute_tx0(self, mute):
self.send_cmd("mutetx0audio","on" if mute else "off")
def force_tx0_plus5(self, enabled):
self.log(f"Setting TX0 +5V FORCE to {enabled}")
self.log_info(f"Setting TX0 +5V FORCE to {enabled}")
self.send_cmd("tx0plus5", "on" if enabled else "off")
def force_tx1_plus5(self, enabled):
self.log(f"Setting TX1 +5V FORCE to {enabled}")
self.log_info(f"Setting TX1 +5V FORCE to {enabled}")
self.send_cmd("tx1plus5", "on" if enabled else "off")
def toggle_filmmaker_mode(self, value):
self.log(f"Setting filmmaker mode to {value}")
self.log_info(f"Setting filmmaker mode to {value}")
self.send_cmd("filmmaker","on" if value else "off")
def on_output_config_conditions_update(self, output_index):
@@ -494,18 +494,18 @@ class Vertex2(SmartObject):
self.send_cmd('edid', 'audioout on')
def set_edid_video_flags_to_tx0(self):
self.log(f"Setting EDID Video Flags to TX0")
self.log_info(f"Setting EDID Video Flags to TX0")
self.send_cmd("edid","videotx0 on")
def set_edid_video_flags_to_tx1(self):
self.log(f"Setting EDID Video Flags to TX1")
self.log_info(f"Setting EDID Video Flags to TX1")
self.send_cmd("edid","videotx1 on")
def mute_tx1(self, mute):
self.send_cmd("mutetx1audio","on" if mute else "off")
def reboot(self):
self.log("Rebooting Vertex2")
self.log_info("Rebooting Vertex2")
self.send_cmd("reboot")
def get_input_config(self,input_number):