Skip to content

Commit

Permalink
Fix device_id and device_private for HomeKit config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 12, 2024
1 parent 5ccbd7c commit 9160403
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/hass/hass.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
func Init() {
var conf struct {
API struct {
Listen string `json:"listen"`
Listen string `yaml:"listen"`
} `yaml:"api"`
Mod struct {
Config string `yaml:"config"`
Expand Down
11 changes: 5 additions & 6 deletions internal/homekit/homekit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ import (
func Init() {
var cfg struct {
Mod map[string]struct {
Pin string `json:"pin"`
Name string `json:"name"`
DeviceID string `json:"device_id"`
DevicePrivate string `json:"device_private"`
Pairings []string `json:"pairings"`
//Listen string `json:"listen"`
Pin string `yaml:"pin"`
Name string `yaml:"name"`
DeviceID string `yaml:"device_id"`
DevicePrivate string `yaml:"device_private"`
Pairings []string `yaml:"pairings"`
} `yaml:"homekit"`
}
app.LoadConfig(&cfg)
Expand Down
2 changes: 1 addition & 1 deletion internal/rtsp/rtsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Init() {
Username string `yaml:"username" json:"-"`
Password string `yaml:"password" json:"-"`
DefaultQuery string `yaml:"default_query" json:"default_query"`
PacketSize uint16 `yaml:"pkt_size"`
PacketSize uint16 `yaml:"pkt_size" json:"packet_size"`

This comment has been minimized.

Copy link
@skrashevich

skrashevich May 12, 2024

Contributor
`yaml:"pkt_size" json:"packet_size"`

I wish you successful debugging ;)

} `yaml:"rtsp"`
}

Expand Down

0 comments on commit 9160403

Please sign in to comment.