Add type integer for pin_priority

I think the pin_priority should be only Integer type, but for backwards compatibility I make it String or Integer.