chore: use yamlsource (#27466)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
50c5e9ac97
commit
9293cdef3e
13 changed files with 60 additions and 51 deletions
16
cmd/root.go
16
cmd/root.go
|
|
@ -361,9 +361,9 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
|
||||
// publish initial settings
|
||||
valueChan <- util.Param{Key: keys.EEBus, Val: globalconfig.ConfigStatus{
|
||||
Config: conf.EEBus.Redacted(),
|
||||
Status: eebus.GetStatus(),
|
||||
FromYaml: fromYaml.eebus,
|
||||
Config: conf.EEBus.Redacted(),
|
||||
Status: eebus.GetStatus(),
|
||||
YamlSource: yamlSource.eebus,
|
||||
}}
|
||||
valueChan <- util.Param{Key: keys.Shm, Val: conf.SHM}
|
||||
valueChan <- util.Param{Key: keys.Influx, Val: conf.Influx}
|
||||
|
|
@ -377,14 +377,14 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
Status: ocpp.GetStatus(),
|
||||
}}
|
||||
valueChan <- util.Param{Key: keys.Sponsor, Val: globalconfig.ConfigStatus{
|
||||
Status: sponsor.RedactedStatus(),
|
||||
FromYaml: fromYaml.sponsor,
|
||||
Status: sponsor.RedactedStatus(),
|
||||
YamlSource: yamlSource.sponsor,
|
||||
}}
|
||||
|
||||
valueChan <- util.Param{Key: keys.Hems, Val: globalconfig.ConfigStatus{
|
||||
Config: conf.HEMS.Redacted(),
|
||||
Status: hemsapi.GetStatus(hems),
|
||||
FromYaml: fromYaml.hems,
|
||||
Config: conf.HEMS.Redacted(),
|
||||
Status: hemsapi.GetStatus(hems),
|
||||
YamlSource: yamlSource.hems,
|
||||
}}
|
||||
|
||||
// publish system infos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue