Adds Home Assistant support for Xaibatsu
This commit is contained in:
@@ -124,6 +124,7 @@ class SwitchesViewController: UIViewController,
|
||||
var snapshot = _collectionViewDataSource.snapshot()
|
||||
snapshot.deleteItems(snapshot.itemIdentifiers(inSection: SwitchesViewController.switchCellsSectionIdentifier))
|
||||
snapshot.appendItems(self.devices.map { $0.hashValue }, toSection: SwitchesViewController.switchCellsSectionIdentifier)
|
||||
snapshot.reloadSections([Self.actionCellsSectionIdentifier])
|
||||
_collectionViewDataSource.apply(snapshot, animatingDifferences: false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user