(self)
publish status peridically
publish status peridically
publish status peridically
async def periodic_update(self):
        '''
        publish status peridically
        '''
        while True:
            # default every 5 minutes
            await asyncio.sleep(self.update_seconds)
            if self.roomba_connected:
                self.log.info("Publishing master_state")
                await self.loop.run_in_executor(None, self.decode_topics, self.master_state)
async def periodic_update ( self ) : while True : # default every 5 minutes await asyncio . sleep ( self . update_seconds ) if self . roomba_connected : self . log . info ( "Publishing master_state" ) await self . loop . run_in_executor ( None , self . decode_topics , self . master_state )