text: import logging
  
  from zigpy.profiles import PROFILES, zha
  from zigpy.zcl.clusters.general import Basic, AnalogInput,\
      PowerConfiguration, Identify, MultistateInput, Ota
  
  from zigpy.zcl.clusters.security import IasZone
  from zhaquirks.xiaomi import BasicCluster, PowerConfigurationCluster,\
      TemperatureMeasurementCluster, XiaomiCustomDevice
  
  IAS_ZONE = 0x0402
  _LOGGER = logging.getLogger(__name__)
  
  class MijiaHoneywellSmokeDetectorSensor(XiaomiCustomDevice):
      def __init__(self, *args, **kwargs):
          self.battery_size = 8 #CR123a
          super().__init__(*args, **kwargs)
  
      signature = {
          #  <SimpleDescriptor endpoint=1 profile=260 device_type=1026
          #  device_version=
          #  input_clusters=[0, 1, 3, 12, 18, 1280]
          #  output_clusters=[25]>
          1: {
              'profile_id': zha.PROFILE_ID,
              'device_type': IAS_ZONE,
  
              'input_clusters': [
                  BasicCluster.cluster_id,
                  PowerConfiguration.cluster_id,
                  Identify.cluster_id,
                  AnalogInput.cluster_id,
                  MultistateInput.cluster_id,
                  IasZone.cluster_id,
              ],
              'output_clusters': [
                  Ota.cluster_id,
              ],
          },
      }
  
      replacement = {
          'endpoints': {
              1: {
                  'manufacturer': 'LUMI',
                  'model': 'lumi.sensor_smoke',
                  'input_clusters': [
                      BasicCluster,
                      PowerConfigurationCluster,
                      Identify.cluster_id,
                      AnalogInput.cluster_id,
                      MultistateInput.cluster_id,
                      IasZone.cluster_id,
                      TemperatureMeasurementCluster
                  ],
                  'output_clusters': [
                      Ota.cluster_id,
                  ],
              }
          },
      }
  