Ah! I’m guessing this is from the Z2M addon config page, right?
If so, you need to remove the serial line entirely and the spaces before the remaining lines.
serial:
is already present in the addon config page as a header. You don’t need to add it again yourself. You can see this post from another user who had the same issue