'Read from sensor and update the state.'

def update(self):

    _LOGGER.debug('Reading    data    from    PM    sensor')
    try:
        self._state = self._collector.read_data()[self._pmname]
    except KeyError:
        _LOGGER.error('Could    not    read    PM%s    value', self._pmname)
