text: from adapters.base_adapter import Adapter
  from devices.sensor.voltage import VoltageSensor
  
  
  class AdapterWithBattery(Adapter):
      def __init__(self, devices):
          super().__init__(devices)
          self.devices.append(VoltageSensor(devices, 'cell', 'battery_voltage', ' (Battery Voltage)'))
  
      def convert_message(self, message):
          message = super().convert_message(message)
  
          if 'voltage' in message.raw:
              message.raw['battery_voltage'] = message.raw['voltage'] / 1000
  
          return message
  