@ -78,7 +78,7 @@ func (w *WifiBridge) refresh() error {
return err
}
if w.state != nil {
if w.state == nil {
w.state = &device.State{
Temperature: gentools.Ptr(temp),