Skip to content

Commit

Permalink
fix: issue after location mqtt implementation (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert authored Mar 29, 2024
1 parent 634b2d6 commit 4636fe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v1_TeslaMateAPICarsStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ func (s *statusCache) newMessage(c mqtt.Client, msg mqtt.Message) {
stat.MQTTDataActiveRouteLatitude = convertStringToFloat(string(msg.Payload()))
case "active_route_longitude":
stat.MQTTDataActiveRouteLongitude = convertStringToFloat(string(msg.Payload()))
case "location":
// doing nothing, since this is identical data to latitude and longitude topics
default:
log.Printf("[warning] TeslaMateAPICarsStatusV1 mqtt.MessageHandler issue.. extraction of data for %s not implemented!", MqttTopic)
}
Expand Down

0 comments on commit 4636fe6

Please sign in to comment.