'Return the state of the sensor.'

@property
def state(self):

    if (self._printer is not None):
        try:
            return next((v for (k, v) in PRINTER_STATES.items() if (self._printer['printer-state'] == k)))
        except StopIteration:
            return self._printer['printer-state']
