Fix for missing manifest version issue
Thanks to @tjdavisbz for this fix this and cleaning up a lot of my ugly code. #4
Fixes the following error:
No 'version' key in the manifest file for custom integration 'infinitive'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'infinitive'.