mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-17 08:05:44 -05:00
<!-- Thank you for submitting a Pull Request and helping to improve Home Assistant. Please complete the following sections to help the processing and review of your changes. Please do not delete anything from this template. --> ## Summary <!-- Provide a brief summary of the changes you have made and most importantly what they aim to achieve --> - Add fallback support to HLS and MJPEG - Improve UI - Move WebRTC known issues disclaimer to a sheet view ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> <img width="3160" height="1068" alt="CleanShot 2026-01-12 at 15 43 49@2x" src="https://github.com/user-attachments/assets/77d445d7-88f0-40fb-8b0d-b1eab3c56e3d" /> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant# ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. --> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
18 lines
563 B
Swift
18 lines
563 B
Swift
import Foundation
|
|
import GRDB
|
|
|
|
// Structure to store camera order per server
|
|
struct CameraListConfiguration: Codable, FetchableRecord, PersistableRecord {
|
|
var serverId: String
|
|
// Dictionary: [areaName: [cameraEntityId]]
|
|
var areaOrders: [String: [String]]
|
|
// Array of section names in custom order
|
|
var sectionOrder: [String]?
|
|
|
|
init(serverId: String, areaOrders: [String: [String]] = [:], sectionOrder: [String]? = nil) {
|
|
self.serverId = serverId
|
|
self.areaOrders = areaOrders
|
|
self.sectionOrder = sectionOrder
|
|
}
|
|
}
|