homes
An array of all homes managed by this home manager.
Declaration
var homes: [HMHome] { get }Discussion
When you create a new home manager, its homes array is empty by default. You can only be sure that this array is properly initialized with data from the shared HomeKit database after the manager calls its delegate’s homeManagerDidUpdateHomes(_:) method for the first time.