Humidity items units/format changed after OH4 upgrade

Do not upgrade without reading the list of breaking changes. OH 4.0 M3’s announcement included:

Please note that there is a breaking change wrt units of measurement - so before doing the update, please read the section in the release notes about this carefully.

tl;dr: you need to run the upgrade tool and in cases where you’ve never defined State Description patterns you need to add unit metadata.