#NEWLINE# def _ping( self , ip_address , now ) : #NEWLINE# #INDENT# "Ping a device, but rate limit.\n\n    Don't ping more often than self._ping_frequency_secs.\n    " #NEWLINE# if ( ( self . _last_ping [ ip_address ] + self . _ping_frequency_secs ) > now ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# pyping . ping ( self , timeout = 1 , count = 1 ) #NEWLINE# self . _last_ping [ ip_address ] = now