Skip to content

Commit

Permalink
Removed warnings from TODO's in favor of bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMisfit68 committed Feb 17, 2024
1 parent 04fc7f2 commit f93ecb7
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,68 +80,41 @@
<string>group</string>
</dict>
<dict>
<key>destination</key>
<dict>
<key>rebasable-url</key>
<key>children</key>
<array>
<dict>
<key>base</key>
<string>home-directory</string>
<key>payload</key>
<key>query-specification</key>
<dict>
<key>relative-path</key>
<string>Documents/Development/Projects/Personal/Xcode/HomeAutomation/Drivers/LeafDriver/Sources/LeafDriver/BatteryChecker.swift</string>
<key>query</key>
<string>text</string>
<key>term</key>
<dict>
<key>text</key>
<string>// FIXME:</string>
</dict>
</dict>
<key>type</key>
<string>batch-find-query</string>
</dict>
<key>type</key>
<string>DVTDocumentLocation</string>
</dict>
<key>type</key>
<string>bookmark</string>
</dict>
<dict>
<key>destination</key>
<dict>
<key>location-parameters</key>
<dict>
<key>EndingColumnNumber</key>
<string>0</string>
<key>EndingLineNumber</key>
<string>57</string>
<key>StartingColumnNumber</key>
<string>0</string>
<key>StartingLineNumber</key>
<string>56</string>
<key>Timestamp</key>
<string>725583443.55126</string>
</dict>
<key>rebasable-url</key>
<dict>
<key>base</key>
<string>home-directory</string>
<key>payload</key>
<key>query-specification</key>
<dict>
<key>relative-path</key>
<string>Documents/Development/Projects/Personal/Xcode/HomeAutomation/Drivers/LeafDriver/Sources/LeafDriver/BatteryChecker.swift</string>
<key>query</key>
<string>text</string>
<key>term</key>
<dict>
<key>text</key>
<string>// TODO:</string>
</dict>
</dict>
<key>type</key>
<string>batch-find-query</string>
</dict>
</dict>
<key>text-context</key>
<dict>
<key>focused</key>
<string> private var updateIsOutdated:Bool{
</string>
<key>leading</key>
<string> }
</string>
<key>trailing</key>
<string>
let formatter = DateFormatter()
formatter.dateFormat = "yyyy/mm/dd HH:mm"
</string>
</dict>
</array>
<key>title</key>
<string>TODO, FIXME, Prints</string>
<key>type</key>
<string>bookmark</string>
<string>group</string>
</dict>
</array>
</dict>
Expand Down
56 changes: 28 additions & 28 deletions HAPiNest/HomekitServer/HomeKitServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,42 @@ import SwiftUI
import LeafDriver

public class HomeKitServer:Singleton{
public static var shared: HomeKitServer = HomeKitServer()
public static var shared: HomeKitServer = HomeKitServer()
public var dashboard:HomeKitServerView?
public var name:String
private var HAPserver:Server!

private var HAPserver:Server!
var mainBridge:Bridge!{
didSet{
didSet{
let serverPort = MainConfiguration.HomeKitServer.ServerPort
HAPserver = try? Server(device: mainBridge, listenPort: serverPort)
dashboard = HomeKitServerView(qrCode: Image(nsImage:mainBridge.setupQRCode.asNSImage!))
}
}
dashboard = HomeKitServerView(qrCode: Image(nsImage:mainBridge.setupQRCode.asNSImage!))
}
}
// let gscNotifier = GSCNotifier()
// let sunnyPortalReporter = SunnyPortalReporter()
private init(){
private init(){
self.name = MainConfiguration.HomeKitServer.ServerName
#if DEBUG
#if DEBUG
AppController(name: "Console", location: .systemUtilities, terminal: TerminalDriver()).startIfInstalled()
AppController(name: "Home", location: .systemApps, terminal: TerminalDriver()).startIfInstalled()
#endif
let logger = Logger(subsystem: "be.oneclick.HAPiNest", category: "HomeKitServer")
logger.info("Initializing the server \(self.name, privacy: .public)...")

#warning("TODO") // TODO: - reimplement SMAInverter
// let _ = SMAInverter.CreateInverters()
}
deinit{
}
#endif
let logger = Logger(subsystem: "be.oneclick.HAPiNest", category: "HomeKitServer")
logger.info("Initializing the server \(self.name, privacy: .public)...")
// TODO: - reimplement SMAInverter
// let _ = SMAInverter.CreateInverters()
}
deinit{
}
}
6 changes: 3 additions & 3 deletions HAPiNest/MainWindow/DashboardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ struct DashboardView: View {

let serverView:HomeKitServerView
let plcView:SoftPLCView
#warning("TODO") // TODO: - Implement Inverter Display again
// TODO: - Implement Inverter Display again
// let inverterView:

var body: some View {

TabView {
Expand Down Expand Up @@ -41,5 +41,5 @@ struct DashboardView: View {
}

#Preview {
DashboardView.preview
DashboardView.preview
}

0 comments on commit f93ecb7

Please sign in to comment.