Use struct, idomatic go way to write homeassistant component and make it 100 test covered
This commit is contained in:
@@ -122,7 +122,7 @@ func (ha *HomeAssistant) handleGetLatestPoo() bool {
|
||||
}
|
||||
|
||||
func (ha *HomeAssistant) createActionTask(message haMessage) bool {
|
||||
if !viper.InConfig("homeassistant.actionTaskProjectId") {
|
||||
if !viper.IsSet("homeassistant.actionTaskProjectId") {
|
||||
slog.Warn("homeassistant.createActionTask: actionTaskProjectId not found in config file")
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user