palette2: Fix get_status (#4171)
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
This commit is contained in:
parent
e7b0e7b43b
commit
3a023d0ff4
|
@ -638,10 +638,12 @@ class Palette2:
|
||||||
|
|
||||||
def get_status(self, eventtime=None):
|
def get_status(self, eventtime=None):
|
||||||
status = {
|
status = {
|
||||||
"ping": self.omega_pings[-1],
|
"ping": None,
|
||||||
"remaining_load_length": self.remaining_load_length,
|
"remaining_load_length": self.remaining_load_length,
|
||||||
"is_splicing": self.is_splicing
|
"is_splicing": self.is_splicing
|
||||||
}
|
}
|
||||||
|
if self.omega_pings:
|
||||||
|
status["ping"] = self.omega_pings[-1]
|
||||||
return status
|
return status
|
||||||
|
|
||||||
def load_config(config):
|
def load_config(config):
|
||||||
|
|
Loading…
Reference in New Issue