mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
fix: issue after location mqtt implementation (#278)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user