str to int for api

This commit is contained in:
DJ2LS 2024-04-26 21:19:13 +02:00
parent ac58483c1c
commit 780924ff37

View file

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