'Get the lat/long string from an entities attributes.'

@staticmethod
def _get_location_from_attributes(entity):

    attr = entity.attributes
    return ('%s,%s' % (attr.get(ATTR_LATITUDE), attr.get(ATTR_LONGITUDE)))
