Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
DJ2LS 2024-05-05 16:31:52 +02:00
commit 9e07655829

View file

@ -295,8 +295,8 @@ class radio:
def get_strength(self):
try:
strength_response = int(self.send_command('l STRENGTH'))
self.parameters['strength'] = strength_response if strength_response is not None else 'err'
strength_response = self.send_command('l STRENGTH')
self.parameters['strength'] = int(strength_response) if strength_response is not None else 'err'
except Exception as e:
self.log.warning(f"Error getting strength: {e}")
self.parameters['strength'] = 'err'