Skip to content

Commit

Permalink
Make sure the printer state is lowecase
Browse files Browse the repository at this point in the history
  • Loading branch information
nikdoof committed Nov 14, 2023
1 parent e98e237 commit f40b757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hackspaceapi/spaceapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_sensors() -> dict:
if data['state'] == 'unavailable':
state = 'offline'
else:
state = data['state']
state = data['state'].lower()

results['ext_3d_printers'].append({
'name': override_name or data['attributes']['friendly_name'].split()[0],
Expand Down

0 comments on commit f40b757

Please sign in to comment.