Config parser: Check for strings using instanceof rather than type
In HA 2023.12 beta, the yaml parser has been modified to return objects that
are a subclass of str, rather than str objects themselves. This breaks the
check for multiple conditions, which needs to differentiate strings from
other sequences.