* Allow checking entity permissions based on devices * Fix tests
* Break up permissions file. * Granular entity permissions * Add "all" entity permission * Lint * Fix types
* Add permission foundation * Address comments * typing * False > True * Convert more lambdas * Use constants * Remove support for False * Fix only allow True