Change Icon state type

A couple of my devices have a lighting icon which reflects its current on or off state instead of the slider bar icon which does the same. How do I change them to the slider bar icon?

Put this in your configuration.yaml:

  # To get toggle switches rather than power flashes in Lovelace

homeassistant:
  customize_domain:
    switch:
      assumed_state: false