code: def _get_boolean(self, source, bitarray):
          ''' Get boolean value, based on the data in XML '''
          raw_value = self._get_raw(source, bitarray)
          return {
              source['shortcut']: {
                  'description': source.get('description'),
                  'unit': source.get('unit', ''),
                  'value': True if raw_value else False,
                  'raw_value': raw_value,
              }
          f _get_boolean(self, source, bitarray):
          ''' Get boolean value, based on the data in XML '''
          raw_value = self._get_raw(source, bitarray)
          return {
              source['shortcut']: {
                  'description': source.get('description'),
                  'unit': source.get('unit', ''),
                  'value': True if raw_value else False,
                  'raw_value': raw_value,
              }
          }
docs: Get boolean value, based on the data in XML