From 7a522d8707add6e373374f0cdc0d17fa41ccbb41 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Wed, 21 Oct 2020 05:07:57 -0700 Subject: [PATCH] Initialize last_direction with value zero, instead of None. --- bin/weewx/restx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/weewx/restx.py b/bin/weewx/restx.py index af198776..1a1066b1 100644 --- a/bin/weewx/restx.py +++ b/bin/weewx/restx.py @@ -831,7 +831,7 @@ class AmbientThread(RESTThread): if to_bool(post_indoor_observations): self.formats.update(AmbientThread._INDOOR_FORMATS) self.force_direction = to_bool(force_direction) - self.last_direction = None + self.last_direction = 0 # Types and formats of the data to be published. # See https://support.weather.com/s/article/PWS-Upload-Protocol?language=en_US