def METHOD_NAME(self, attrid, value):
    if attrid == HEATING_ACTIVE:
        self.endpoint.device.thermostat_bus.listener_event(
            "heating_active_change", value
        )
    elif attrid == CHILD_LOCK:
        self.endpoint.device.ui_bus.listener_event("child_lock_change", value)
    elif attrid == ACTIVE_SENSOR:
        self.active_sensor = value
    elif attrid == LOCAL_TEMP:
        if (
            self.active_sensor is not None
            and self.active_sensor == self.Sensor.FLOOR
        ):
            # Ignore the air sensor reading if the floor sensor is selected
            return
    elif attrid == FLOOR_SENSOR_TEMPERATURE:
        if (
            self.active_sensor is not None
            and self.active_sensor == self.Sensor.FLOOR
        ):
            attrid = LOCAL_TEMP
    elif attrid == POWER_CONSUMPTION:
        if value is not None and value >= 0:
            self.endpoint.device.power_bus.listener_event("power_reported", value)
    super().METHOD_NAME(attrid, value)