Skip to content

Script errors out with drives #184

Description

@trenchcoatjedi
root@Pi:~/system_sensors/src# python3 system_sensors.py settings.yaml
Traceback (most recent call last):
  File "/root/system_sensors/src/system_sensors.py", line 250, in <module>
    add_drives()
  File "/root/system_sensors/src/system_sensors.py", line 168, in add_drives
    drive_path = settings['sensors']['external_drives'][drive]
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
TypeError: string indices must be integers, not 'str'

This happens no matter what is entered for external drives in the settings.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions