fix: sensor named function

This commit is contained in:
Markus Pesch 2019-03-04 17:46:21 +01:00
parent 453bf8e440
commit 64368ff69d
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -44,7 +44,7 @@ func (s *Sensor) JSONEncoder(w io.Writer) error {
func (s *Sensor) Name() string {
if s.SensorName != "" {
return s.SensorName
} else if *s.WireID != "" {
} else if s.WireID != nil {
return *s.WireID
}
return s.SensorID