Removed reference to self.device in backend.serial

This commit is contained in:
Fabio Manganiello 2018-04-29 16:26:12 +02:00
parent cfe78dfa23
commit cddd740666

View file

@ -24,7 +24,7 @@ class SerialBackend(Backend):
while not self.should_stop(): while not self.should_stop():
new_data = self.get_data() new_data = self.get_data()
if self.data is None or self.data != new_data: if self.data is None or self.data != new_data:
self.bus.post(SerialDataEvent(data=new_data, device=self.device)) self.bus.post(SerialDataEvent(data=new_data))
self.data = new_data self.data = new_data