def get_reading(self, condition):
    'Return the value for the given condition.\n\n        BOM weather publishes condition readings for weather (and a few other\n        conditions) at intervals throughout the day. To avoid a `-` value in\n        the frontend for these conditions, we traverse the historical data\n        for the latest value that is not `-`.\n\n        Iterators are used in this method to avoid iterating needlessly\n        through the entire BOM provided dataset.\n        '
    condition_readings = (entry[condition] for entry in self._data)
    return next((x for x in condition_readings if (x != '-')), None)
Return the value for the given condition.

BOM weather publishes condition readings for weather (and a few other
conditions) at intervals throughout the day. To avoid a `-` value in
the frontend for these conditions, we traverse the historical data
for the latest value that is not `-`.

Iterators are used in this method to avoid iterating needlessly
through the entire BOM provided dataset.
def get_reading(self, condition):
    'Return the value for the given condition.\n\n        BOM weather publishes condition readings for weather (and a few other\n        conditions) at intervals throughout the day. To avoid a `-` value in\n        the frontend for these conditions, we traverse the historical data\n        for the latest value that is not `-`.\n\n        Iterators are used in this method to avoid iterating needlessly\n        through the entire BOM provided dataset.\n        '
    condition_readings = (entry[condition] for entry in self._data)
    return next((x for x in condition_readings if (x != '-')), None)