config: remove pointer
This commit is contained in:
@@ -99,7 +99,7 @@ func upgradeConfig(helper up.Helper) {
|
||||
}
|
||||
|
||||
func (tg *TelegramConnector) GetConfig() (example string, data any, upgrader up.Upgrader) {
|
||||
return ExampleConfig, tg.Config, &up.StructUpgrader{
|
||||
return ExampleConfig, &tg.Config, &up.StructUpgrader{
|
||||
SimpleUpgrader: up.SimpleUpgrader(upgradeConfig),
|
||||
Blocks: [][]string{
|
||||
{"device_info"},
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
|
||||
type TelegramConnector struct {
|
||||
Bridge *bridgev2.Bridge
|
||||
Config *TelegramConfig
|
||||
Config TelegramConfig
|
||||
Store *store.Container
|
||||
|
||||
useDirectMedia bool
|
||||
|
||||
Reference in New Issue
Block a user