mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
str to int for api
This commit is contained in:
parent
ac58483c1c
commit
780924ff37
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ class radio:
|
||||||
|
|
||||||
def get_strength(self):
|
def get_strength(self):
|
||||||
try:
|
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'
|
self.parameters['strength'] = strength_response if strength_response is not None else 'err'
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.log.warning(f"Error getting strength: {e}")
|
self.log.warning(f"Error getting strength: {e}")
|
||||||
|
|
Loading…
Reference in a new issue