def room_temperature(self):
        """Return room temperature for both sides of bed."""
        # Check which side is active, if both are return the average
        tmp = None
        tmp2 = None
        for user in self.users:
            obj = self.users[user]
            if obj.current_values['processing']:
                if tmp is None:
                    tmp = obj.current_values['room_temp']
                else:
                    tmp = (tmp + obj.current_values['room_temp']) / 2
            else:
                if tmp2 is None:
                    tmp2 = obj.current_values['room_temp']
                else:
                    tmp2 = (tmp2 + obj.current_values['room_temp']) / 2

        if tmp is not None:
            return tmp
        elif tmp2 is not None:
            return tmp2
def room_temperature ( self ) : tmp = None tmp2 = None for user in self . users : obj = self . users [ user ] if obj . current_values [ 'processing' ] : if tmp is None : tmp = obj . current_values [ 'room_temp' ] else : tmp = ( tmp + obj . current_values [ 'room_temp' ] ) / 2 else : if tmp2 is None : tmp2 = obj . current_values [ 'room_temp' ] else : tmp2 = ( tmp2 + obj . current_values [ 'room_temp' ] ) / 2 if tmp is not None : return tmp elif tmp2 is not None : return tmp2
Return room temperature for both sides of bed.