palette2: Fix get_status (#4171)

Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
This commit is contained in:
Clifford Roche 2021-04-15 13:53:06 -04:00 committed by GitHub
parent e7b0e7b43b
commit 3a023d0ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -638,10 +638,12 @@ class Palette2:
def get_status(self, eventtime=None):
status = {
"ping": self.omega_pings[-1],
"ping": None,
"remaining_load_length": self.remaining_load_length,
"is_splicing": self.is_splicing
}
if self.omega_pings:
status["ping"] = self.omega_pings[-1]
return status
def load_config(config):