#NEWLINE# def stale( self , now = None ) : #NEWLINE# #INDENT# 'Return if device state is stale.' #NEWLINE# return ( self . last_seen and ( ( ( now or dt_util . utcnow ( ) ) - self . last_seen ) > self . consider_home ) )