Skip to content

CFE-DeviceManager-3


title: CFE-DeviceManager-3: Device does not have a valid config. Expected a dictionary.


This error occurs when MPF expects a dictionary in a config of a device but found something else.

Examples

For instance, the settings of a switch are a dictionary (switches -> s_flipper_left).

switches:
  s_flipper_left:
    number: 1
    label: My Left Flipper

Common Pitfalls

Forgetting the Device Name

This error usually occurs when you omit the device name. For example if you omit s_flipper_left this would look like this:

# BROKEN CONFIG
switches:
  number: 1
  label: My Left Flipper

Here MPF would see two switches with the names number and label. Each of them has an invalid config (just a single value but not a dictionary).

YAML Formatting Issues

See CFE-ConfigValidator-12: Item is not a dict for more general common pitfalls.

Need more help troubleshooting?

Have a look at our CFE-ConfigValidator-12 section. It might give you some hints for certain classes of problems.

What if this did not fix your problem?

Please tell us about your error in the community forum and we might be able to update this page afterwards. Or even better: You help us to update it afterwards.

Is something missing here? Do you have a helpful hint for others experiencing this error?

Please create a Pull Request and add it. Alternatively, please tell us in the community forum.


Something missing or wrong? You can fix it!

This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?

Please help us! You can fix it yourself and be an official "open source" contributor!

It's easy! See our Beginner's guide to editing the docs.

Page navigation via the keyboard: < >

You can navigate this site via the keyboard. There are two modes:

General navigation, when search is not focused:

  • F , S , / : open search dialog
  • P , , : go to previous page
  • N , . : go to next page

While using the search function:

  • Down , Up : select next / previous result
  • Esc , Tab : close search
  • Enter : go to highlighted page in the results